Exception: CLIClassTool::RunError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cli_class_tool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject (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

#outputObject (readonly)

Returns the value of attribute output.



3
4
5
# File 'lib/cli_class_tool.rb', line 3

def output
  @output
end