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