Sha256: 227605c58156e8e2f049ac90accbe081010edc2b445f6e989813a3fb06f4fbb4
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
module TicketingHub class Error < StandardError attr_accessor :response def initialize response=nil @response = response end def response_body @response[:body] end end # Raised when TicketingHub returns a 400 HTTP status code class BadRequest < Error; end # Raised when TicketingHub returns a 401 HTTP status code class Unauthorized < Error; end # Raised when TicketingHub returns a 403 HTTP status code class Forbidden < Error; end # Raised when TicketingHub returns a 404 HTTP status code class NotFound < Error; end # Raised when TicketingHub returns a 406 HTTP status code class NotAcceptable < Error; end # Raised when TicketingHub returns a 422 HTTP status code class UnprocessableEntity < Error; end # Raised when TicketingHub returns a 500 HTTP status code class InternalServerError < Error; end # Raised when TicketingHub returns a 501 HTTP status code class NotImplemented < Error; end # Raised when TicketingHub returns a 502 HTTP status code class BadGateway < Error; end # Raised when TicketingHub returns a 503 HTTP status code class ServiceUnavailable < Error; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ticketinghub-1.0.0 | lib/ticketing_hub/error.rb |
ticketinghub-0.0.4 | lib/ticketing_hub/error.rb |
ticketinghub-0.0.3 | lib/ticketing_hub/error.rb |