Exception: PDK::CLI::FatalError
- Inherits:
-
StandardError
- Object
- StandardError
- PDK::CLI::FatalError
- 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 = 'An unexpected error has occurred. Try running the command again with --debug', opts = {}) ⇒ FatalError
constructor
A new instance of FatalError.
Constructor Details
#initialize(msg = 'An unexpected error has occurred. Try running the command again with --debug', opts = {}) ⇒ FatalError
Returns a new instance of FatalError.
8 9 10 11 |
# File 'lib/pdk/cli/errors.rb', line 8 def initialize(msg = 'An unexpected error has occurred. Try running the command again with --debug', opts = {}) @exit_code = opts.fetch(:exit_code, 1) super(msg) end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
6 7 8 |
# File 'lib/pdk/cli/errors.rb', line 6 def exit_code @exit_code end |