lib/rubygems/exceptions.rb in rubygems-update-2.7.6 vs lib/rubygems/exceptions.rb in rubygems-update-2.7.7

- old
+ new

@@ -2,20 +2,24 @@ # TODO: the documentation in here is terrible. # # Each exception needs a brief description and the scenarios where it is # likely to be raised +require 'rubygems/deprecate' + ## # Base exception class for RubyGems. All exception raised by RubyGems are a # subclass of this one. class Gem::Exception < RuntimeError ## #-- - # TODO: remove in RubyGems 3, nobody sets this + # TODO: remove in RubyGems 4, nobody sets this attr_accessor :source_exception # :nodoc: + extend Gem::Deprecate + deprecate :source_exception, :none, 2018, 12 end class Gem::CommandLineError < Gem::Exception; end class Gem::DependencyError < Gem::Exception; end