Example #1
0
 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)
Example #2
0
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)
Example #3
0
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)
Example #4
0
def show_exceptions(error):
    return handle_error(db, 'msg.html', error=error, is_display=True)
Example #5
0
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)
Example #6
0
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)
Example #7
0
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)