Exception: AtprotoAuth::OAuthError

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

Overview

Base class for AT Protocol OAuth errors

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, error_code)
  @error_code = error_code
  # @type-ignore
  super(message)
end

Instance Attribute Details

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