Exception: ActiveRecordApi::Rest::Auth::BadSessionException
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveRecordApi::Rest::Auth::BadSessionException
- Defined in:
- lib/active_record_api/rest/auth/bad_session_exception.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
Instance Method Summary collapse
-
#initialize(controller, action) ⇒ BadSessionException
constructor
A new instance of BadSessionException.
Constructor Details
#initialize(controller, action) ⇒ BadSessionException
Returns a new instance of BadSessionException.
7 8 9 10 11 |
# File 'lib/active_record_api/rest/auth/bad_session_exception.rb', line 7 def initialize(controller, action) super("No user for fullmeasure_session on #{action} #{controller}") @action = action @controller = controller end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
5 6 7 |
# File 'lib/active_record_api/rest/auth/bad_session_exception.rb', line 5 def action @action end |
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
6 7 8 |
# File 'lib/active_record_api/rest/auth/bad_session_exception.rb', line 6 def controller @controller end |