Exception: AtprotoAuth::Token::Error
- Defined in:
- lib/atproto_auth/token/refresh.rb
Overview
Base error class for token-related errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#retry_possible ⇒ Object
readonly
Returns the value of attribute retry_possible.
-
#token_type ⇒ Object
readonly
Returns the value of attribute token_type.
Instance Method Summary collapse
-
#initialize(message, token_type:, error_code:, retry_possible: false) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, token_type:, error_code:, retry_possible: false) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 14 |
# File 'lib/atproto_auth/token/refresh.rb', line 9 def initialize(, token_type:, error_code:, retry_possible: false) @token_type = token_type @error_code = error_code @retry_possible = retry_possible super() end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
7 8 9 |
# File 'lib/atproto_auth/token/refresh.rb', line 7 def error_code @error_code end |
#retry_possible ⇒ Object (readonly)
Returns the value of attribute retry_possible.
7 8 9 |
# File 'lib/atproto_auth/token/refresh.rb', line 7 def retry_possible @retry_possible end |
#token_type ⇒ Object (readonly)
Returns the value of attribute token_type.
7 8 9 |
# File 'lib/atproto_auth/token/refresh.rb', line 7 def token_type @token_type end |