Exception: Lino::Errors::ExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- Lino::Errors::ExecutionError
- Defined in:
- lib/lino/errors/execution_error.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#command_line ⇒ Object
readonly
Returns the value of attribute command_line.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(command_line = nil, exit_code = nil, cause = nil) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
Constructor Details
#initialize(command_line = nil, exit_code = nil, cause = nil) ⇒ ExecutionError
Returns a new instance of ExecutionError.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/lino/errors/execution_error.rb', line 10 def initialize( command_line = nil, exit_code = nil, cause = nil ) @command_line = command_line @exit_code = exit_code @cause = cause super('Failed while executing command line.') end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
6 7 8 |
# File 'lib/lino/errors/execution_error.rb', line 6 def cause @cause end |
#command_line ⇒ Object (readonly)
Returns the value of attribute command_line.
6 7 8 |
# File 'lib/lino/errors/execution_error.rb', line 6 def command_line @command_line end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
6 7 8 |
# File 'lib/lino/errors/execution_error.rb', line 6 def exit_code @exit_code end |