Sha256: 900e70bcb9bce82c3a52b9ace0249eae02557186dc213c420b5d874744c9f556

Contents?: true

Size: 720 Bytes

Versions: 1

Compression:

Stored size: 720 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 InvalidTariffInput < Error; end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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