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