$67 GRAYBYTE WORDPRESS FILE MANAGER $72

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby22/lib64/ruby/2.2.0/rubygems/

HOME
Current File : /opt/alt/ruby22/lib64/ruby/2.2.0/rubygems//exceptions.rb
# TODO: the documentation in here is terrible.
#
# Each exception needs a brief description and the scenarios where it is
# likely to be raised

##
# 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

  attr_accessor :source_exception # :nodoc:

end

class Gem::CommandLineError < Gem::Exception; end

class Gem::DependencyError < Gem::Exception; end

class Gem::DependencyRemovalException < Gem::Exception; end

##
# Raised by Gem::Resolver when a Gem::Dependency::Conflict reaches the
# toplevel.  Indicates which dependencies were incompatible through #conflict
# and #conflicting_dependencies

class Gem::DependencyResolutionError < Gem::DependencyError

  attr_reader :conflict

  def initialize conflict
    @conflict = conflict
    a, b = conflicting_dependencies

    super "conflicting dependencies #{a} and #{b}\n#{@conflict.explanation}"
  end

  def conflicting_dependencies
    @conflict.conflicting_dependencies
  end

end

##
# Raised when attempting to uninstall a gem that isn't in GEM_HOME.

class Gem::GemNotInHomeException < Gem::Exception
  attr_accessor :spec
end

class Gem::DocumentError < Gem::Exception; end

##
# Potentially raised when a specification is validated.
class Gem::EndOfYAMLException < Gem::Exception; end

##
# Signals that a file permission error is preventing the user from
# operating on the given directory.

class Gem::FilePermissionError < Gem::Exception

  attr_reader :directory

  def initialize directory
    @directory = directory

    super "You don't have write permissions for the #{directory} directory."
  end

end

##
# Used to raise parsing and loading errors
class Gem::FormatException < Gem::Exception
  attr_accessor :file_path
end

class Gem::GemNotFoundException < Gem::Exception; end

##
# Raised by the DependencyInstaller when a specific gem cannot be found

class Gem::SpecificGemNotFoundException < Gem::GemNotFoundException

  ##
  # Creates a new SpecificGemNotFoundException for a gem with the given +name+
  # and +version+.  Any +errors+ encountered when attempting to find the gem
  # are also stored.

  def initialize(name, version, errors=nil)
    super "Could not find a valid gem '#{name}' (#{version}) locally or in a repository"

    @name = name
    @version = version
    @errors = errors
  end

  ##
  # The name of the gem that could not be found.

  attr_reader :name

  ##
  # The version of the gem that could not be found.

  attr_reader :version

  ##
  # Errors encountered attempting to find the gem.

  attr_reader :errors

end

##
# Raised by Gem::Resolver when dependencies conflict and create the
# inability to find a valid possible spec for a request.

class Gem::ImpossibleDependenciesError < Gem::Exception

  attr_reader :conflicts
  attr_reader :request

  def initialize request, conflicts
    @request   = request
    @conflicts = conflicts

    super build_message
  end

  def build_message # :nodoc:
    requester  = @request.requester
    requester  = requester ? requester.spec.full_name : 'The user'
    dependency = @request.dependency

    message = "#{requester} requires #{dependency} but it conflicted:\n"

    @conflicts.each do |_, conflict|
      message << conflict.explanation
    end

    message
  end

  def dependency
    @request.dependency
  end

end

class Gem::InstallError < Gem::Exception; end

##
# Potentially raised when a specification is validated.
class Gem::InvalidSpecificationException < Gem::Exception; end

class Gem::OperationNotSupportedError < Gem::Exception; end

##
# Signals that a remote operation cannot be conducted, probably due to not
# being connected (or just not finding host).
#--
# TODO: create a method that tests connection to the preferred gems server.
# All code dealing with remote operations will want this.  Failure in that
# method should raise this error.
class Gem::RemoteError < Gem::Exception; end

class Gem::RemoteInstallationCancelled < Gem::Exception; end

class Gem::RemoteInstallationSkipped < Gem::Exception; end

##
# Represents an error communicating via HTTP.
class Gem::RemoteSourceException < Gem::Exception; end

##
# Raised when a gem dependencies file specifies a ruby version that does not
# match the current version.

class Gem::RubyVersionMismatch < Gem::Exception; end

##
# Raised by Gem::Validator when something is not right in a gem.

class Gem::VerificationError < Gem::Exception; end

##
# Raised to indicate that a system exit should occur with the specified
# exit_code

class Gem::SystemExitException < SystemExit

  ##
  # The exit code for the process

  attr_accessor :exit_code

  ##
  # Creates a new SystemExitException with the given +exit_code+

  def initialize(exit_code)
    @exit_code = exit_code

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

end

##
# Raised by Resolver when a dependency requests a gem for which
# there is no spec.

class Gem::UnsatisfiableDependencyError < Gem::DependencyError

  ##
  # The unsatisfiable dependency.  This is a
  # Gem::Resolver::DependencyRequest, not a Gem::Dependency

  attr_reader :dependency

  ##
  # Errors encountered which may have contributed to this exception

  attr_accessor :errors

  ##
  # Creates a new UnsatisfiableDependencyError for the unsatisfiable
  # Gem::Resolver::DependencyRequest +dep+

  def initialize dep, platform_mismatch=nil
    if platform_mismatch and !platform_mismatch.empty?
      plats = platform_mismatch.map { |x| x.platform.to_s }.sort.uniq
      super "Unable to resolve dependency: No match for '#{dep}' on this platform. Found: #{plats.join(', ')}"
    else
      if dep.explicit?
        super "Unable to resolve dependency: user requested '#{dep}'"
      else
        super "Unable to resolve dependency: '#{dep.request_context}' requires '#{dep}'"
      end
    end

    @dependency = dep
    @errors     = []
  end

  ##
  # The name of the unresolved dependency

  def name
    @dependency.name
  end

  ##
  # The Requirement of the unresolved dependency (not Version).

  def version
    @dependency.requirement
  end

end

##
# Backwards compatible typo'd exception class for early RubyGems 2.0.x

Gem::UnsatisfiableDepedencyError = Gem::UnsatisfiableDependencyError # :nodoc:



Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.53 PM
root / root
0755
commands
--
3 Mar 2024 10.43 PM
root / linksafe
0755
core_ext
--
3 Mar 2024 10.43 PM
root / linksafe
0755
ext
--
3 Mar 2024 10.43 PM
root / linksafe
0755
package
--
3 Mar 2024 10.43 PM
root / linksafe
0755
request
--
3 Mar 2024 10.43 PM
root / linksafe
0755
request_set
--
3 Mar 2024 10.43 PM
root / linksafe
0755
resolver
--
3 Mar 2024 10.43 PM
root / linksafe
0755
security
--
3 Mar 2024 10.43 PM
root / linksafe
0755
source
--
3 Mar 2024 10.43 PM
root / linksafe
0755
ssl_certs
--
3 Mar 2024 10.43 PM
root / linksafe
0755
util
--
3 Mar 2024 10.43 PM
root / linksafe
0755
available_set.rb
2.99 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
basic_specification.rb
6.659 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
command.rb
13.552 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
command_manager.rb
4.629 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
compatibility.rb
1.626 KB
25 Dec 2014 3.37 AM
root / linksafe
0644
config_file.rb
12.573 KB
14 Dec 2017 1.50 PM
root / linksafe
0644
defaults.rb
4.014 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
dependency.rb
8.483 KB
17 Nov 2014 3.55 AM
root / linksafe
0644
dependency_installer.rb
13.812 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
dependency_list.rb
5.44 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
deprecate.rb
1.701 KB
7 Jan 2014 1.19 AM
root / linksafe
0644
doctor.rb
3.035 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
errors.rb
3.121 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
exceptions.rb
6.199 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
ext.rb
0.421 KB
16 Oct 2013 6.00 AM
root / linksafe
0644
gem_runner.rb
1.957 KB
14 Sep 2013 8.59 AM
root / linksafe
0644
gemcutter_utilities.rb
3.943 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
indexer.rb
13.025 KB
17 Nov 2014 3.55 AM
root / linksafe
0644
install_default_message.rb
0.3 KB
9 Jul 2013 11.21 PM
root / linksafe
0644
install_message.rb
0.274 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
install_update_options.rb
5.854 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
installer.rb
22.482 KB
10 Sep 2017 1.10 AM
root / linksafe
0644
installer_test_case.rb
4.233 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
local_remote_options.rb
3.369 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
mock_gem_ui.rb
1.347 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
name_tuple.rb
2.373 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
package.rb
14.874 KB
16 Feb 2018 4.27 PM
root / linksafe
0644
package_task.rb
3.769 KB
26 Aug 2013 8.24 PM
root / linksafe
0644
path_support.rb
1.82 KB
14 Sep 2013 8.59 AM
root / linksafe
0644
platform.rb
6.131 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
psych_additions.rb
0.263 KB
20 Oct 2013 1.33 AM
root / linksafe
0644
psych_tree.rb
0.745 KB
9 Jul 2013 10.34 PM
root / linksafe
0644
rdoc.rb
7.705 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
remote_fetcher.rb
11.091 KB
10 Sep 2017 1.10 AM
root / linksafe
0644
request.rb
6.729 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
request_set.rb
9.397 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
requirement.rb
6.198 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
resolver.rb
13.348 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
safe_yaml.rb
1.108 KB
14 Dec 2017 1.50 PM
root / linksafe
0644
security.rb
20.957 KB
20 Jan 2014 4.57 AM
root / linksafe
0644
server.rb
22.927 KB
16 Feb 2018 4.27 PM
root / linksafe
0644
source.rb
5.206 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
source_list.rb
2.47 KB
19 Nov 2013 12.34 AM
root / linksafe
0644
source_local.rb
0.108 KB
14 Sep 2013 8.59 AM
root / linksafe
0644
source_specific_file.rb
0.091 KB
14 Sep 2013 8.59 AM
root / linksafe
0644
spec_fetcher.rb
6.314 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
specification.rb
72.877 KB
16 Feb 2018 4.27 PM
root / linksafe
0644
stub_specification.rb
3.556 KB
7 Dec 2014 12.53 AM
root / linksafe
0644
syck_hack.rb
2.088 KB
19 Dec 2013 10.09 PM
root / linksafe
0644
test_case.rb
37.488 KB
22 Apr 2016 9.15 AM
root / linksafe
0644
test_utilities.rb
8.438 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
text.rb
1.896 KB
10 Sep 2017 1.10 AM
root / linksafe
0644
uninstaller.rb
8.717 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
uri_formatter.rb
0.744 KB
20 Oct 2013 1.33 AM
root / linksafe
0644
user_interaction.rb
14.644 KB
17 Nov 2014 3.55 AM
root / linksafe
0644
util.rb
2.594 KB
3 Aug 2014 1.33 PM
root / linksafe
0644
validator.rb
4.185 KB
30 Nov 2013 11.27 PM
root / linksafe
0644
version.rb
10.916 KB
14 Sep 2014 3.30 AM
root / linksafe
0644
version_option.rb
1.827 KB
14 Sep 2013 8.59 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF