Exception: LogicaCompiler::CommandFailedError

Inherits:
Error
  • Object
show all
Defined in:
lib/logica_compiler/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, command: nil) ⇒ CommandFailedError

Returns a new instance of CommandFailedError.



9
10
11
12
# File 'lib/logica_compiler/errors.rb', line 9

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

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



7
8
9
# File 'lib/logica_compiler/errors.rb', line 7

def command
  @command
end