예제 #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
파일: main.py 프로젝트: Soopro/ext_comment
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)