Exception: Actionizer::Failure

Inherits:
Exception
  • Object
show all
Defined in:
lib/actionizer/failure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#outputObject (readonly)

Returns the value of attribute output.



3
4
5
# File 'lib/actionizer/failure.rb', line 3

def output
  @output
end