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