Exception: Octokit::OneTimePasswordRequired
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- Octokit::OneTimePasswordRequired
- Defined in:
- lib/octokit/error.rb
Overview
Raised when GitHub returns a 401 HTTP status code and headers include "X-GitHub-OTP"
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#password_delivery ⇒ String
Delivery method for the user's OTP.
Methods inherited from Error
#build_error_context, #documentation_url, #errors, from_response, #initialize, #response_body, #response_headers, #response_status
Constructor Details
This class inherits a constructor from Octokit::Error
Instance Method Details
#password_delivery ⇒ String
Delivery method for the user's OTP
251 252 253 |
# File 'lib/octokit/error.rb', line 251 def password_delivery @password_delivery ||= delivery_method_from_header end |