Exception: Crows::NotAuthorizedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/crows.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ NotAuthorizedError

Returns a new instance of NotAuthorizedError.



26
27
28
29
30
31
# File 'lib/crows.rb', line 26

def initialize(options = {})
  query  = options[:query]
  record = options[:record]
  message = "not allowed to #{query} this #{record.inspect}"
  super(message)
end