class

Octokit::Error

Inherits Exception < Reference < Object

Constructors

new(response : Halite::Response | Nil = nil)
Source

Class methods

error_for_401(headers)

Returns most appropriate error for 401 HTTP status code @private

Source
error_for_403(body)

Returns most appropriate error for 403 HTTP status code @private

Source
error_for_404(body)

Return most appropriate error for 404 HTTP status code @private

Source
from_response(response : Halite::Response)

Returns the appropriate Octokit::Error subclass based on status and response message

Source

Instance methods

documentation_url

Documentation URL returned by the API for some errors

@return [String]

Source
errors

Array of validation errors @return [Array<Hash>] Error info

Source
response_body

Body returned by the GitHub server.

@return [String]

Source
response_headers

Headers returned by the GitHub server.

@return [Hash]

Source
response_status

Status code returned by the GitHub server.

@return [Integer]

Source

Nested types