Exception: ConnectorsShared::ExplicitlyCausedError
- Inherits:
-
StandardError
- Object
- StandardError
- ConnectorsShared::ExplicitlyCausedError
- Defined in:
- lib/connectors_shared/errors.rb
Overview
For when we want to explicitly set a #cause but can’t
Direct Known Subclasses
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason) ⇒ ExplicitlyCausedError
constructor
A new instance of ExplicitlyCausedError.
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
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
95 96 97 |
# File 'lib/connectors_shared/errors.rb', line 95 def reason @reason end |