Exception: RubyReactor::Error::Base
- Inherits:
-
StandardError
- Object
- StandardError
- RubyReactor::Error::Base
- Defined in:
- lib/ruby_reactor/error/base.rb
Direct Known Subclasses
CompensationError, ContextTooLargeError, DependencyError, DeserializationError, InputValidationError, SchemaVersionError, StepFailureError, UndoError, ValidationError
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
-
#initialize(message, step: nil, context: nil, original_error: nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(message, step: nil, context: nil, original_error: nil) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 13 |
# File 'lib/ruby_reactor/error/base.rb', line 8 def initialize(, step: nil, context: nil, original_error: nil) super() @step = step @context = context @original_error = original_error end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'lib/ruby_reactor/error/base.rb', line 6 def context @context end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
6 7 8 |
# File 'lib/ruby_reactor/error/base.rb', line 6 def original_error @original_error end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
6 7 8 |
# File 'lib/ruby_reactor/error/base.rb', line 6 def step @step end |