Exception: AtprotoAuth::Token::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/atproto_auth/token/refresh.rb

Overview

Base error class for token-related errors

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, token_type:, error_code:, retry_possible: false)
  @token_type = token_type
  @error_code = error_code
  @retry_possible = retry_possible
  super(message)
end

Instance Attribute Details

#error_codeObject (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_possibleObject (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_typeObject (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