Exception: GLI::CustomExit
- Inherits:
-
Exception
- Object
- Exception
- GLI::CustomExit
- Defined in:
- lib/gli/exceptions.rb
Overview
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(message, exit_code) ⇒ CustomExit
constructor
Create a custom exit exception.
Constructor Details
#initialize(message, exit_code) ⇒ CustomExit
Create a custom exit exception
message
-
String containing error message to show the user
exit_code
-
the exit code to use (as an Int), overridding GLI’s default
40 41 42 43 |
# File 'lib/gli/exceptions.rb', line 40 def initialize(,exit_code) super() @exit_code = exit_code end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
:nodoc:
35 36 37 |
# File 'lib/gli/exceptions.rb', line 35 def exit_code @exit_code end |