public class DataEngineErrorHandler extends Object
| Constructor and Description |
|---|
DataEngineErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
captureDataEngineException(DataEngineOMASAPIResponse response,
DataEngineException e)
Set the exception information into the response.
|
void |
captureOMRSCheckedExceptionBase(DataEngineOMASAPIResponse response,
OMRSCheckedExceptionBase e)
Set the exception information into the response.
|
void |
handleNewInstanceException(DataEngineErrorCode errorCode,
String methodName)
Throws a NewInstanceException
|
void |
handlePropertyServerException(DataEngineErrorCode errorCode,
String methodName)
Throws a PropertyServerException
|
void |
validateUserId(String userId,
String methodName)
Throw an exception if the supplied userId is null
|
public void handleNewInstanceException(DataEngineErrorCode errorCode, String methodName) throws NewInstanceException
errorCode - error code for the exception thrownmethodName - name of the method where the exception occursNewInstanceException - a problem occurred during initializationpublic void handlePropertyServerException(DataEngineErrorCode errorCode, String methodName) throws PropertyServerException
errorCode - error code for the exception thrownmethodName - name of the method where the exception occursPropertyServerException - no available instance for the requested serverpublic void validateUserId(String userId, String methodName) throws UserNotAuthorizedException
userId - user name to validatemethodName - name of the method making the call.UserNotAuthorizedException - the userId is nullpublic void captureOMRSCheckedExceptionBase(DataEngineOMASAPIResponse response, OMRSCheckedExceptionBase e)
response - REST Responsee - returned responsepublic void captureDataEngineException(DataEngineOMASAPIResponse response, DataEngineException e)
response - REST Responsee - returned responseCopyright © 2018–2019 ODPi. All rights reserved.