Exception: Authentic::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/authentic/error.rb

Overview

Public: Represents a request error when requesting OIDC config or JWKs from authorization server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ RequestError

Returns a new instance of RequestError.



8
9
10
11
# File 'lib/authentic/error.rb', line 8

def initialize(msg, code)
  @code = code
  super(msg)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/authentic/error.rb', line 7

def code
  @code
end