End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::SystemExitException.new
new(exit_code)
lib/rubygems/exceptions.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/exceptions.rb, line 229
def initialize(exit_code)
@exit_code = exit_code
super exit_code, "Exiting RubyGems with exit_code #{exit_code}"
end
Creates a new SystemExitException with the given exit_code