示例#1
0
 def app_error_405(error):
     current_app.logger.warn(
         "Error: 405\n{}".format(traceback.format_exc()))
     return make_json_response(MethodNotAllowed())
示例#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)))
示例#3
0
def comment_api_err(error):
    print error
    return make_json_response(error)
示例#4
0
 def app_error_404(error):
     current_app.logger.warn(
         "Error: 404\n{}".format(traceback.format_exc()))
     return make_json_response(NotFound())
示例#5
0
def blueprint_api_err(err):
    return make_json_response(err)
示例#6
0
def blueprint_api_err(err):
    return make_json_response(err)
示例#7
0
 def app_error_405(error):
     current_app.logger.warn(
         "Error: 405\n{}".format(traceback.format_exc()))
     return make_json_response(MethodNotAllowed())
示例#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)))
示例#9
0
 def app_error_404(error):
     current_app.logger.warn(
         "Error: 404\n{}".format(traceback.format_exc()))
     return make_json_response(NotFound())
示例#10
0
 def app_error_400(error):
     return make_json_response(BadRequest(repr(error)))
示例#11
0
 def app_error_405(error):
     return make_json_response(MethodNotAllowed(repr(error)))
示例#12
0
 def app_error_404(error):
     return make_json_response(NotFound(repr(error)))
示例#13
0
def comment_api_err(error):
    print error
    return make_json_response(error)