Sha256: f1f990851fa9ce0c2e739c2c6e07e4edc45f65a69615d7671d168ae201e6be99

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

module Coop
  # Standard class for errors
  class Error < StandardError; end

  # Raised when Co-op returns the HTTP status code 400
  class BadRequest < Error; end
  
  # Raised when Co-op returns the HTTP status code 401
  class Unauthorized < Error; end

  # Raised when Co-op returns the HTTP status code 404
  class NotFound < Error; end

  # Raised when Co-op returns the HTTP status code 500
  class InternalServerError < Error; end

  # Raised when Co-op returns the HTTP status code 503
  class ServiceUnavailable < Error; end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coop-1.1.1 lib/coop/error.rb
coop-1.1.0 lib/coop/error.rb
coop-1.0.1 lib/coop/error.rb
coop-1.0.0 lib/coop/error.rb