Exception: Operations::Errors::NotLoggedInError
- Inherits:
-
BaseException
- Object
- StandardError
- BaseException
- Operations::Errors::NotLoggedInError
- Defined in:
- lib/operations/errors/not_logged_in_error.rb
Instance Method Summary collapse
-
#initialize(operation = nil) ⇒ NotLoggedInError
constructor
A new instance of NotLoggedInError.
Constructor Details
#initialize(operation = nil) ⇒ NotLoggedInError
Returns a new instance of NotLoggedInError.
4 5 6 7 |
# File 'lib/operations/errors/not_logged_in_error.rb', line 4 def initialize(operation=nil) operation_name = operation.nil? ? 'unknown' : (operation.description || operation.name) super("You must log in before running this action. Attempted operation `#{operation_name}'.") end |