Exception: Actionizer::Failure
- Inherits:
-
Exception
- Object
- Exception
- Actionizer::Failure
- Defined in:
- lib/actionizer/failure.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(msg = 'Failed!', output = Actionizer::Result.new.tap(&:fail)) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(msg = 'Failed!', output = Actionizer::Result.new.tap(&:fail)) ⇒ Failure
Returns a new instance of Failure.
5 6 7 8 |
# File 'lib/actionizer/failure.rb', line 5 def initialize(msg = 'Failed!', output = Actionizer::Result.new.tap(&:fail)) @output = output super msg end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
3 4 5 |
# File 'lib/actionizer/failure.rb', line 3 def output @output end |