Exception: Artery::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Artery::Error
- Defined in:
- lib/artery/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#artery_context ⇒ Object
Returns the value of attribute artery_context.
Instance Method Summary collapse
-
#initialize(message = nil, **context) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, **context) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 12 13 14 |
# File 'lib/artery/errors.rb', line 7 def initialize( = nil, **context) super() @original_exception = context.delete(:original_exception) @artery_context = context set_backtrace @original_exception ? @original_exception.backtrace : caller if backtrace.blank? end |
Instance Attribute Details
#artery_context ⇒ Object
Returns the value of attribute artery_context.
5 6 7 |
# File 'lib/artery/errors.rb', line 5 def artery_context @artery_context end |