Exception: JWT::Authenticator::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jwt-authenticator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message: nil, type:) ⇒ Error

Returns a new instance of Error.



78
79
80
81
# File 'lib/jwt-authenticator.rb', line 78

def initialize(message: nil, type:)
  super message.presence || type.to_s.humanize
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



76
77
78
# File 'lib/jwt-authenticator.rb', line 76

def type
  @type
end