Exception: FancyCommand::Command::Failed
- Inherits:
-
StandardError
- Object
- StandardError
- FancyCommand::Command::Failed
- Defined in:
- lib/fancy_command/command.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(command:, status:, output:) ⇒ Failed
constructor
A new instance of Failed.
Constructor Details
#initialize(command:, status:, output:) ⇒ Failed
Returns a new instance of Failed.
9 10 11 12 13 14 |
# File 'lib/fancy_command/command.rb', line 9 def initialize(command:, status:, output:) @command = command @status = status @output = output super("'#{command}' failed with status #{status} and output:\n#{output}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
7 8 9 |
# File 'lib/fancy_command/command.rb', line 7 def command @command end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
7 8 9 |
# File 'lib/fancy_command/command.rb', line 7 def output @output end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/fancy_command/command.rb', line 7 def status @status end |