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())
def getNullableApi(): return FlaskUtil.getNullableApi()