Exception: HyperResource::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- HyperResource::Exception
- Defined in:
- lib/hyper_resource/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
The internal exception which led to this one, if any.
Instance Method Summary collapse
-
#initialize(message, attrs = {}) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(message, attrs = {}) ⇒ Exception
Returns a new instance of Exception.
6 7 8 9 |
# File 'lib/hyper_resource/exceptions.rb', line 6 def initialize(, attrs={}) # @private self.cause = attrs[:cause] super() end |
Instance Attribute Details
#cause ⇒ Object
The internal exception which led to this one, if any.
4 5 6 |
# File 'lib/hyper_resource/exceptions.rb', line 4 def cause @cause end |