Exception: ActiveInteractor::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveInteractor::Error
- Defined in:
- lib/active_interactor/errors.rb
Overview
Raised on interactor failure
Instance Attribute Summary collapse
-
#result ⇒ ActiveInteractor::Result
readonly
The result of the interactor that failed.
Instance Method Summary collapse
-
#initialize(result, message = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(result, message = nil) ⇒ Error
Returns a new instance of Error.
11 12 13 14 |
# File 'lib/active_interactor/errors.rb', line 11 def initialize(result, = nil) @result = result super() end |
Instance Attribute Details
#result ⇒ ActiveInteractor::Result (readonly)
Returns the result of the interactor that failed.
8 9 10 11 12 13 14 15 |
# File 'lib/active_interactor/errors.rb', line 8 class Error < StandardError attr_reader :result def initialize(result, = nil) @result = result super() end end |