This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2008-06-27 00:13:15 -04:00
|
|
|
class Exceptions < Application
|
2008-06-29 17:19:52 -04:00
|
|
|
include MerbExceptions::ControllerExtensions
|
|
|
|
|
2008-06-27 00:13:15 -04:00
|
|
|
# handle NotFound exceptions (404)
|
|
|
|
def not_found
|
|
|
|
@page_title = 'Error 404'
|
|
|
|
@secondary_title = 'Document Not Found'
|
2008-06-29 17:19:52 -04:00
|
|
|
render_and_notify :format => :html
|
2008-06-27 00:13:15 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
# handle NotAcceptable exceptions (406)
|
|
|
|
def not_acceptable
|
|
|
|
@page_title = 'Error 500'
|
|
|
|
@secondary_title = 'Application Exception'
|
2008-06-29 17:19:52 -04:00
|
|
|
render_and_notify :format => :html
|
2008-06-27 00:13:15 -04:00
|
|
|
end
|
|
|
|
end
|