예제 #1
0
def getAndPersistGlobalException(exception,
                                 resourceInstance,
                                 resourceInstanceMethod,
                                 apiInstance=None,
                                 context=HttpDomain.CONTROLLER_CONTEXT):
    return ExceptionHandler.handleLogErrorException(
        exception,
        resourceInstance,
        resourceInstanceMethod,
        context,
        apiInstance=apiInstance
        if ObjectHelper.isNotNone(apiInstance) else FlaskUtil.getNullableApi())
예제 #2
0
def getNullableApi():
    return FlaskUtil.getNullableApi()