class Octokit::Error
- Octokit::Error
- Exception
- Reference
- Object
Direct Known Subclasses
Defined in:
octokit/error.crConstructors
Class Method Summary
-
.error_for_401(headers)
Returns most appropriate error for 401 HTTP status code @private
-
.error_for_403(body)
Returns most appropriate error for 403 HTTP status code @private
-
.error_for_404(body)
Return most appropriate error for 404 HTTP status code @private
-
.from_response(response : Halite::Response)
Returns the appropriate Octokit::Error subclass based on status and response message
Instance Method Summary
-
#documentation_url
Documentation URL returned by the API for some errors
-
#errors
Array of validation errors @return [Array
] Error info -
#response_body
Body returned by the GitHub server.
-
#response_headers
Headers returned by the GitHub server.
-
#response_status
Status code returned by the GitHub server.
Constructor Detail
Class Method Detail
def self.from_response(response : Halite::Response)
#
Returns the appropriate Octokit::Error subclass based on status and response message