Exception: Crew::Context::FailedCommandError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Crew::Context::FailedCommandError
- Defined in:
- lib/crew/context.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(command, out, err, status) ⇒ FailedCommandError
constructor
A new instance of FailedCommandError.
Constructor Details
#initialize(command, out, err, status) ⇒ FailedCommandError
Returns a new instance of FailedCommandError.
12 13 14 15 |
# File 'lib/crew/context.rb', line 12 def initialize(command, out, err, status) @command, @out, @err, @status = command, out, err, status super("`#{@command}' failed with status=#{@status} out=#{@out.inspect} err=#{@err.inspect}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
10 11 12 |
# File 'lib/crew/context.rb', line 10 def command @command end |
#err ⇒ Object (readonly)
Returns the value of attribute err.
10 11 12 |
# File 'lib/crew/context.rb', line 10 def err @err end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
10 11 12 |
# File 'lib/crew/context.rb', line 10 def out @out end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/crew/context.rb', line 10 def status @status end |