Exception: InactiveUserError
- Inherits:
-
StandardError
- Object
- StandardError
- InactiveUserError
- Defined in:
- app/errors/inactive_user_error.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(message = 'User is inactive.', error_code = 'backend/inactive-user') ⇒ InactiveUserError
constructor
A new instance of InactiveUserError.
Constructor Details
#initialize(message = 'User is inactive.', error_code = 'backend/inactive-user') ⇒ InactiveUserError
Returns a new instance of InactiveUserError.
4 5 6 7 |
# File 'app/errors/inactive_user_error.rb', line 4 def initialize( = 'User is inactive.', error_code = 'backend/inactive-user') super() @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
2 3 4 |
# File 'app/errors/inactive_user_error.rb', line 2 def error_code @error_code end |