Sha256: b575512a1c51da850a5392762c64cb4080852774af9743b2b14aa79b79d4eca1
Contents?: true
Size: 1.32 KB
Versions: 3
Compression:
Stored size: 1.32 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 405. class MethodNotAllowed < Error; end # Raised when API endpoint returns the HTTP status code 409. class Conflict < Error; end # Raised when API endpoint returns the HTTP status code 422. class Unprocessable < 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-3.6.1 | lib/gitlab/error.rb |
gitlab-3.6.0 | lib/gitlab/error.rb |
gitlab-3.5.0 | lib/gitlab/error.rb |