Sha256: 60c3877b80ba2c3ac9776be4fa726fe20a623aaaaf2e7c388e0ef0a8d1fffa80

Contents?: true

Size: 942 Bytes

Versions: 18

Compression:

Stored size: 942 Bytes

Contents

module Poms
  module Errors
    # Generic Poms error that all other errors inherit from. This allows you to
    # rescue any exception from this library in your application code.
    PomsError = Class.new(StandardError)

    # Custom Error class to signal missing authorization attributes
    AuthenticationError = Class.new(PomsError)

    # Base exception for all Poms-specific HTTP errors.
    HttpError = Class.new(PomsError)

    # Wrapper exception for dealing with driver-agnostic 404 responses.
    HttpMissingError = Class.new(HttpError)

    # Wrapper exception for dealing with driver-agnostic 500 responses.
    HttpServerError = Class.new(HttpError)

    # Custom error than can be used to indicate a required configuration value
    # is missing.
    MissingConfigurationError = Class.new(PomsError)

    # Custom error to indicate that the gem has not been configured at all.
    NotConfigured = Class.new(PomsError)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
poms-3.0.0 lib/poms/errors.rb
poms-2.6.0 lib/poms/errors.rb
poms-2.5.1 lib/poms/errors.rb
poms-2.5.0 lib/poms/errors.rb
poms-2.4.0 lib/poms/errors.rb
poms-2.3.1 lib/poms/errors.rb
poms-2.3.0 lib/poms/errors.rb
poms-2.2.1 lib/poms/errors.rb
poms-2.2.0 lib/poms/errors.rb
poms-2.1.3 lib/poms/errors.rb
poms-2.1.2.1 lib/poms/errors.rb
poms-2.1.2 lib/poms/errors.rb
poms-2.1.1 lib/poms/errors.rb
poms-2.1.0 lib/poms/errors.rb
poms-2.0.1 lib/poms/errors.rb
poms-2.0.0 lib/poms/errors.rb
poms-2.0.0.b lib/poms/errors.rb
poms-2.0.0.a lib/poms/errors.rb