Exception: Bundler::BundlerError
- Inherits:
-
StandardError
- Object
- StandardError
- Bundler::BundlerError
show all
- Defined in:
- lib/bundler/errors.rb
Direct Known Subclasses
APIResponseInvalidDependenciesError, APIResponseMismatchError, CorruptBundlerInstallError, CyclicDependencyError, DeprecatedError, DirectoryRemovalError, GemNotFound, GemRequireError, GemfileError, GemfileLockNotFound, GemfileNotFound, GemspecError, GenericSystemCallError, GitError, HTTPError, IncorrectLockfileDependencies, InsecureInstallPathError, InstallError, InstallHookError, InvalidArgumentError, InvalidOption, LockfileError, PathError, PermissionError, PluginError, ProductionError, RubyVersionMismatch, SecurityError, SolveFailure, ThreadCreationError, VirtualProtocolError, YamlSyntaxError
Class Method Summary
collapse
Class Method Details
permalink
.all_errors ⇒ Object
[View source]
15
16
17
|
# File 'lib/bundler/errors.rb', line 15
def self.all_errors
@all_errors ||= {}
end
|
permalink
.status_code(code) ⇒ Object
[View source]
5
6
7
8
9
10
11
12
13
|
# File 'lib/bundler/errors.rb', line 5
def self.status_code(code)
define_method(:status_code) { code }
if match = BundlerError.all_errors.find {|_k, v| v == code }
error, _ = match
raise ArgumentError,
"Trying to register #{self} for status code #{code} but #{error} is already registered"
end
BundlerError.all_errors[self] = code
end
|