def all_other_exceptions(error): return handle_error(db, 'msg.html', msg="Sorry, there's been a server error. For help, contact our webmaster at: [email protected]", title='Server Error', error=error, is_trace=True)
def forbidden(error): return handle_error(db, 'msg.html', error=error, msg="You're not allowed to access this page. The owner may have made it private.", title="Forbidden from access", is_display=True)
def all_other_error_codes(error): return handle_error(db, 'msg.html', msg=u"Sorry, there was an error: %s. For help, contact our webmaster at: [email protected]" % unicode(error), error=error, is_trace=True)
def show_exceptions(error): return handle_error(db, 'msg.html', error=error, is_display=True)
def unauthorized_request(error): return handle_error(db, 'msg.html', error=error, msg="Sorry, you're not authorized to do that. Perhaps you need to login?", title="Not logged in", is_trace=True, is_display=True)
def bad_request(error): return handle_error(db, 'msg.html', error=error, msg="Sorry, your request was either broken or not allowed. For help, contact our webmaster at: [email protected]", title="Bad request", is_trace=True, is_display=True)
def not_found(error): return handle_error(db, 'msg.html', error=error, msg="The page was not found", title="Page not found", is_display=True)