Exception: HenshinBelt::Errors::ExpiredToken

Inherits:
StandardError
  • Object
show all
Defined in:
lib/henshin_belt/errors/expired_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'Expired token') ⇒ ExpiredToken

Returns a new instance of ExpiredToken.



6
7
8
9
# File 'lib/henshin_belt/errors/expired_token.rb', line 6

def initialize(msg = 'Expired token')
  @code = 401
  super
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/henshin_belt/errors/expired_token.rb', line 10

def code
  @code
end