Exception: Operations::Errors::NotLoggedInError

Inherits:
BaseException
  • Object
show all
Defined in:
lib/operations/errors/not_logged_in_error.rb

Instance Method Summary collapse

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