Exception: CommandServiceObject::Failure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/command_service_object/failure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message: nil, command: {}) ⇒ Failure

Returns a new instance of Failure.



5
6
7
8
# File 'lib/command_service_object/failure.rb', line 5

def initialize(message: nil, command: {})
  @command = command
  super(message)
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



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

def command
  @command
end