Exception: ExceptionHandler::ProfileNotBindedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/patch/action_controller/concerns/exception_handler.rb

Overview

Используется для сигнализации ошибки, что аккаунт не прикреплен ни к одному профилю

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ ProfileNotBindedError

Returns a new instance of ProfileNotBindedError.



51
52
53
54
# File 'lib/patch/action_controller/concerns/exception_handler.rb', line 51

def initialize(param)
  @param = param
  super("No active profile: #{param}")
end

Instance Attribute Details

#paramObject (readonly)

Returns the value of attribute param.



49
50
51
# File 'lib/patch/action_controller/concerns/exception_handler.rb', line 49

def param
  @param
end