Exception: Miu::WrappedError
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ WrappedError
constructor
A new instance of WrappedError.
Constructor Details
#initialize(error) ⇒ WrappedError
Returns a new instance of WrappedError.
8 9 10 11 |
# File 'lib/miu/errors.rb', line 8 def initialize(error) @error = error super "#{@error.class}: #{@error.to_s}" end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
6 7 8 |
# File 'lib/miu/errors.rb', line 6 def error @error end |