Exception: Emojidex::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Emojidex::Error
- Defined in:
- lib/emojidex/error.rb
Overview
emojidex error class
Instance Attribute Summary collapse
-
#wrapped_exception ⇒ Object
readonly
Returns the value of attribute wrapped_exception.
Instance Method Summary collapse
-
#initialize(exception = $ERROR_INFO) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(exception = $ERROR_INFO) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 11 12 13 |
# File 'lib/emojidex/error.rb', line 6 def initialize(exception = $ERROR_INFO) @wrapped_exception = exception if exception.respond_to?(:message) super(exception.) else super(exception.to_s) end end |
Instance Attribute Details
#wrapped_exception ⇒ Object (readonly)
Returns the value of attribute wrapped_exception.
4 5 6 |
# File 'lib/emojidex/error.rb', line 4 def wrapped_exception @wrapped_exception end |