Exception: Mack::Errors::ResourceNotFound

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

Overview

Raised when an action tries to render a resource that can’t be found.

Example:

http://www.mackframework.com/my_missing_file.jpg

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ ResourceNotFound

Takes the resource that can’t be found.

Example:

http://www.mackframework.com/my_missing_file.jpg # => my_missing_file.jpg would be the resource


46
47
48
# File 'lib/mack/errors/errors.rb', line 46

def initialize(resource)
  super(resource)
end