Sha256: c5d3e402b5619664184777408606dd8abcdfd7506f859fc34ee9838045878e3a

Contents?: true

Size: 1.11 KB

Versions: 6

Compression:

Stored size: 1.11 KB

Contents

module Lelylan
  # Internal: Custom error class for rescuing from all Lelylan errors
  class Error < StandardError; end

  # Internal: Raised when Lelylan returns a 400 HTTP status code
  class BadRequest < Error; end

  # Internal: Raised when Lelylan returns a 401 HTTP status code
  class Unauthorized < Error; end

  # Internal: Raised when Lelylan returns a 403 HTTP status code
  class Forbidden < Error; end

  # Internal: Raised when Lelylan returns a 404 HTTP status code
  class NotFound < Error; end

  # Internal: Raised when Lelylan returns a 406 HTTP status code
  class NotAcceptable < Error; end

  # Internal: Raised when Lelylan returns a 422 HTTP status code
  class UnprocessableEntity < Error; end

  # Internal: Raised when Lelylan returns a 500 HTTP status code
  class InternalServerError < Error; end

  # Internal: Raised when Lelylan returns a 501 HTTP status code
  class NotImplemented < Error; end

  # Internal: Raised when Lelylan returns a 502 HTTP status code
  class BadGateway < Error; end

  # Internal: Raised when Lelylan returns a 503 HTTP status code
  class ServiceUnavailable < Error; end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lelylan-rb-0.1.0 lib/lelylan/error.rb
lelylan-rb-0.0.5 lib/lelylan/error.rb
lelylan-rb-0.0.4 lib/lelylan/error.rb
lelylan-rb-0.0.3 lib/lelylan/error.rb
lelylan-rb-0.0.2 lib/lelylan/error.rb
lelylan-rb-0.0.1 lib/lelylan/error.rb