Sha256: 6761453999513ad961bc4005fd2a3b37299a9b3bf0c77563d8ae104c492ef648

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

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

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

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sambatech-0.0.1 lib/sambatech/error.rb