Exception: Gem::SystemExitException
- Inherits:
-
SystemExit
- Object
- SystemExit
- Gem::SystemExitException
- Defined in:
- lib/rubygems/exceptions.rb
Overview
Raised to indicate that a system exit should occur with the specified exit_code
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(exit_code) ⇒ SystemExitException
constructor
A new instance of SystemExitException.
Constructor Details
#initialize(exit_code) ⇒ SystemExitException
Returns a new instance of SystemExitException.
85 86 87 88 89 |
# File 'lib/rubygems/exceptions.rb', line 85 def initialize(exit_code) @exit_code = exit_code super "Exiting RubyGems with exit_code #{exit_code}" end |
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code.
83 84 85 |
# File 'lib/rubygems/exceptions.rb', line 83 def exit_code @exit_code end |