コード例 #1
0
ファイル: application.py プロジェクト: Soopro/ext_comment
 def app_error_405(error):
     current_app.logger.warn(
         "Error: 405\n{}".format(traceback.format_exc()))
     return make_json_response(MethodNotAllowed())
コード例 #2
0
ファイル: application.py プロジェクト: Soopro/ext_comment
 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
ファイル: application.py プロジェクト: Soopro/ext_comment
 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
ファイル: main.py プロジェクト: Soopro/ext_newsletter
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
ファイル: application.py プロジェクト: SquirrelMajik/GRec
 def app_error_400(error):
     return make_json_response(BadRequest(repr(error)))
コード例 #11
0
ファイル: application.py プロジェクト: SquirrelMajik/GRec
 def app_error_405(error):
     return make_json_response(MethodNotAllowed(repr(error)))
コード例 #12
0
ファイル: application.py プロジェクト: SquirrelMajik/GRec
 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)