Exception: ShadowLink::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ShadowLink::Error
- Defined in:
- lib/shadow_link/error.rb
Overview
Error is a custom error class that wraps an error raised in a shadow. It provides access to the error’s shadow object.
Instance Attribute Summary collapse
-
#shadow ⇒ Object
readonly
Returns the value of attribute shadow.
Instance Method Summary collapse
-
#initialize(error) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 |
# File 'lib/shadow_link/error.rb', line 9 def initialize(error) @shadow = error super(error.) freeze end |
Instance Attribute Details
#shadow ⇒ Object (readonly)
Returns the value of attribute shadow.
7 8 9 |
# File 'lib/shadow_link/error.rb', line 7 def shadow @shadow end |