Exception: Octokit::Unauthorized
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ClientError ,
Error ,
StandardError
|
|
Instance Chain:
self,
ClientError ,
Error ,
StandardError
|
|
Inherits: |
Octokit::ClientError
|
Defined in: | lib/octokit/error.rb |
Overview
Raised when GitHub returns a 401 HTTP status code
Class Method Summary
Error
- Inherited
.error_for_401 | Returns most appropriate error for 401 HTTP status code. |
.error_for_403 | Returns most appropriate error for 403 HTTP status code. |
.error_for_404 | Return most appropriate error for 404 HTTP status code. |
.error_for_422 | Return most appropriate error for 422 HTTP status code. |
.from_response | Returns the appropriate |
.new |
Instance Attribute Summary
Instance Method Summary
Error
- Inherited
#build_error_context, | |
#documentation_url | Documentation URL returned by the API for some errors. |
#errors | Array of validation errors. |
#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. |
#build_error_message, #data, #redact_url, #response_error, #response_error_summary, #response_message |
Constructor Details
This class inherits a constructor from Octokit::Error