Sha256: 0eaab16cd7452b418889e8eaffea395ecbaddff23057b7df5508bf1d0d39c5d5

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

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

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

  # Raised when Genability returns the HTTP status code 403
  class Forbidden < Error; end

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

  # Raised when Genability returns the HTTP status code 500
  class ServerError < Error; end

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

  # Raised when the tariff input for the calculate method is
  # not an array or hash
  class InvalidInput < Error; end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
genability-0.3.0 lib/genability/error.rb