Exception: HenshinBelt::Errors::ExpiredToken
- Inherits:
-
StandardError
- Object
- StandardError
- HenshinBelt::Errors::ExpiredToken
- Defined in:
- lib/henshin_belt/errors/expired_token.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg = 'Expired token') ⇒ ExpiredToken
constructor
A new instance of ExpiredToken.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/henshin_belt/errors/expired_token.rb', line 10 def code @code end |