Esempio n. 1
0
 def app_error_405(error):
     current_app.logger.warn(
         "Error: 405\n{}".format(traceback.format_exc()))
     return make_json_response(MethodNotAllowed())
Esempio n. 2
0
 def app_error_uncaught(error):
     current_app.logger.warn(
         "Error: Uncaught\n{}".format(traceback.format_exc()))
     return make_json_response(UncaughtException(repr(error)))
Esempio n. 3
0
def comment_api_err(error):
    print error
    return make_json_response(error)
Esempio n. 4
0
 def app_error_404(error):
     current_app.logger.warn(
         "Error: 404\n{}".format(traceback.format_exc()))
     return make_json_response(NotFound())
Esempio n. 5
0
def blueprint_api_err(err):
    return make_json_response(err)
Esempio n. 6
0
def blueprint_api_err(err):
    return make_json_response(err)
Esempio n. 7
0
 def app_error_405(error):
     current_app.logger.warn(
         "Error: 405\n{}".format(traceback.format_exc()))
     return make_json_response(MethodNotAllowed())
Esempio n. 8
0
 def app_error_uncaught(error):
     current_app.logger.warn(
         "Error: Uncaught\n{}".format(traceback.format_exc()))
     return make_json_response(UncaughtException(repr(error)))
Esempio n. 9
0
 def app_error_404(error):
     current_app.logger.warn(
         "Error: 404\n{}".format(traceback.format_exc()))
     return make_json_response(NotFound())
Esempio n. 10
0
 def app_error_400(error):
     return make_json_response(BadRequest(repr(error)))
Esempio n. 11
0
 def app_error_405(error):
     return make_json_response(MethodNotAllowed(repr(error)))
Esempio n. 12
0
 def app_error_404(error):
     return make_json_response(NotFound(repr(error)))
Esempio n. 13
0
def comment_api_err(error):
    print error
    return make_json_response(error)