Exception: Gem::SystemExitException

Inherits:
SystemExit
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(exit_code) ⇒ SystemExitException

Returns a new instance of SystemExitException.



102
103
104
105
106
# File 'lib/rubygems/exceptions.rb', line 102

def initialize(exit_code)
  @exit_code = exit_code

  super "Exiting RubyGems with exit_code #{exit_code}"
end

Instance Attribute Details

#exit_codeObject

Returns the value of attribute exit_code



100
101
102
# File 'lib/rubygems/exceptions.rb', line 100

def exit_code
  @exit_code
end