Exception: HenshinBelt::Errors::InvalidToken
- Inherits:
-
StandardError
- Object
- StandardError
- HenshinBelt::Errors::InvalidToken
- Defined in:
- lib/henshin_belt/errors/invalid_token.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg = 'Invalid token') ⇒ InvalidToken
constructor
A new instance of InvalidToken.
Constructor Details
#initialize(msg = 'Invalid token') ⇒ InvalidToken
Returns a new instance of InvalidToken.
6 7 8 9 |
# File 'lib/henshin_belt/errors/invalid_token.rb', line 6 def initialize(msg = 'Invalid 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/invalid_token.rb', line 10 def code @code end |