Exception: Utility::ExplicitlyCausedError
- Inherits:
-
StandardError
- Object
- StandardError
- Utility::ExplicitlyCausedError
- Defined in:
- lib/utility/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.
89 90 91 |
# File 'lib/utility/errors.rb', line 89 def initialize(reason) @reason = reason end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
87 88 89 |
# File 'lib/utility/errors.rb', line 87 def reason @reason end |