Sha256: c6a4b50d7e26ecbda3b640ec8b00fc61cab05c98da56e44debff6a7dce61afea

Contents?: true

Size: 949 Bytes

Versions: 2

Compression:

Stored size: 949 Bytes

Contents

module EPayCo
  # Custom error class for rescuing from all EPayCo errors
  class Error < StandardError; end

  # Raised when EPayCo returns the HTTP status code 400
  class BadRequest < Error; end

  # Raised when EPayCo returns the HTTP status code 404
  class NotFound < Error; end

  # Raised when EPayCo returns the HTTP status code 429
  class TooManyRequests < Error; end

  # Raised when EPayCo returns the HTTP status code 500
  class InternalServerError < Error; end

  # Raised when EPayCo returns the HTTP status code 502
  class BadGateway < Error; end

  # Raised when EPayCo returns the HTTP status code 503
  class ServiceUnavailable < Error; end

  # Raised when EPayCo returns the HTTP status code 504
  class GatewayTimeout < Error; end

  # Raised when a subscription payload hash is invalid
  class InvalidSignature < Error; end

  # Raised when EPayCo returns the HTTP status code 429
  class RateLimitExceeded < Error; end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
epayco-0.0.3 lib/epayco/error.rb
epayco-0.0.2 lib/epayco/error.rb