Sha256: 325b3575e452b9487b4608a858532f6ea75d13318d2af5ccbc4229b01a8f1920

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 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

end

Version data entries

1 entries across 1 versions & 1 rubygems

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