Exception: AtprotoAuth::OAuthError
- Defined in:
- lib/atproto_auth/errors.rb
Overview
Base class for AT Protocol OAuth errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(message, error_code) ⇒ OAuthError
constructor
A new instance of OAuthError.
Constructor Details
#initialize(message, error_code) ⇒ OAuthError
Returns a new instance of OAuthError.
10 11 12 13 14 |
# File 'lib/atproto_auth/errors.rb', line 10 def initialize(, error_code) @error_code = error_code # @type-ignore super() end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
8 9 10 |
# File 'lib/atproto_auth/errors.rb', line 8 def error_code @error_code end |