Sha256: 7c4d39af713c10c484ff42a542d7c0684f0d3c19e49c00b4f65d845787e27411
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
module Gitlab module Error # Custom error class for rescuing from all Gitlab errors. class Error < StandardError; end # Raised when API endpoint credentials not configured. class MissingCredentials < Error; end # Raised when impossible to parse response body. class Parsing < Error; end # Raised when API endpoint returns the HTTP status code 400. class BadRequest < Error; end # Raised when API endpoint returns the HTTP status code 401. class Unauthorized < Error; end # Raised when API endpoint returns the HTTP status code 403. class Forbidden < Error; end # Raised when API endpoint returns the HTTP status code 404. class NotFound < Error; end # Raised when API endpoint returns the HTTP status code 500. class InternalServerError < Error; end # Raised when API endpoint returns the HTTP status code 502. class BadGateway < Error; end # Raised when API endpoint returns the HTTP status code 503. class ServiceUnavailable < Error; end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gitlab-2.2.0 | lib/gitlab/error.rb |
gitlab-2.1.0 | lib/gitlab/error.rb |
gitlab-2.0.0 | lib/gitlab/error.rb |