Exception: CLIClassTool::RunError
- Inherits:
-
StandardError
- Object
- StandardError
- CLIClassTool::RunError
- Defined in:
- lib/cli_class_tool.rb
Instance Attribute Summary collapse
-
#err_code ⇒ Object
readonly
Returns the value of attribute err_code.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(err_code, output = nil) ⇒ RunError
constructor
A new instance of RunError.
Constructor Details
#initialize(err_code, output = nil) ⇒ RunError
Returns a new instance of RunError.
5 6 7 8 9 |
# File 'lib/cli_class_tool.rb', line 5 def initialize(err_code, output = nil) @err_code = err_code @output = output super("Command failed with exit status #{err_code}#{output ? "\n#{output}" : ''}") end |
Instance Attribute Details
#err_code ⇒ Object (readonly)
Returns the value of attribute err_code.
3 4 5 |
# File 'lib/cli_class_tool.rb', line 3 def err_code @err_code end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
3 4 5 |
# File 'lib/cli_class_tool.rb', line 3 def output @output end |