Exception: ConnectorsShared::ExplicitlyCausedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/connectors_shared/errors.rb

Overview

For when we want to explicitly set a #cause but can’t

Direct Known Subclasses

PublishingFailedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ ExplicitlyCausedError

Returns a new instance of ExplicitlyCausedError.



97
98
99
# File 'lib/connectors_shared/errors.rb', line 97

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



95
96
97
# File 'lib/connectors_shared/errors.rb', line 95

def reason
  @reason
end