Exception: InactiveUserError

Inherits:
StandardError
  • Object
show all
Defined in:
app/errors/inactive_user_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = 'User is inactive.', error_code = 'backend/inactive-user')
  super(message)
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (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