Exception: Vpim::Agent::NotFound

Inherits:
Exception
  • Object
show all
Defined in:
lib/vpim/agent/calendars.rb

Overview

On failure, raise this with an error message. text/plain for now, text/html later. Will convert to a 404 and a message.

Instance Method Summary collapse

Constructor Details

#initialize(name, path) ⇒ NotFound

Returns a new instance of NotFound.



20
21
22
# File 'lib/vpim/agent/calendars.rb', line 20

def initialize(name, path)
  super %{Resource "#{name}" under "#{path.prefix}" was not found!}
end