Sha256: 2b1b92fb7096a43bda42fe9c72df189e24854fe559c5c9b823068d3682e0777b
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
module CloudConnect # Custom error class for rescuing from all CloudConnect errors class Error < StandardError; end # Raised when CloudConnect returns a 400 HTTP status code class BadRequest < Error; end # Raised when CloudConnect returns a 401 HTTP status code class Unauthorized < Error; end # Raised when CloudConnect returns a 403 HTTP status code class Forbidden < Error; end # Raised when CloudConnect returns a 404 HTTP status code class NotFound < Error; end # Raised when CloudConnect returns a 406 HTTP status code class NotAcceptable < Error; end # Raised when CloudConnect returns a 422 HTTP status code class UnprocessableEntity < Error; end # Raised when CloudConnect returns a 500 HTTP status code class InternalServerError < Error; end # Raised when CloudConnect returns a 501 HTTP status code class NotImplemented < Error; end # Raised when CloudConnect returns a 502 HTTP status code class BadGateway < Error; end # Raised when CloudConnect returns a 503 HTTP status code class ServiceUnavailable < Error; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cloud_connect-3.2.0 | lib/cloud_connect/error.rb |
cloud_connect-3.1.0 | lib/cloud_connect/error.rb |
cloud_connect-3.0.3 | lib/cloud_connect/error.rb |