Exception: PDK::CLI::ExitWithError
- Inherits:
-
StandardError
- Object
- StandardError
- PDK::CLI::ExitWithError
- Defined in:
- lib/pdk/cli/errors.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(msg, exit_code = 1) ⇒ ExitWithError
constructor
A new instance of ExitWithError.
Constructor Details
#initialize(msg, exit_code = 1) ⇒ ExitWithError
Returns a new instance of ExitWithError.
15 16 17 18 |
# File 'lib/pdk/cli/errors.rb', line 15 def initialize(msg, exit_code = 1) @exit_code = exit_code super(msg) end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
13 14 15 |
# File 'lib/pdk/cli/errors.rb', line 13 def exit_code @exit_code end |