Class TexExceptionHandler
java.lang.Object
org.odpi.openmetadata.viewservices.tex.api.ffdc.TexExceptionHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
captureCheckedException
(FFDCResponse response, OCFCheckedExceptionBase error, String exceptionClassName) Method for capturing an exception into a REST response.static TexViewServiceException
mapOMRSInvalidParameterException
(String className, String methodName, InvalidParameterException repositoryException) static TexViewServiceException
mapOMRSRepositoryErrorException
(String className, String methodName, RepositoryErrorException repositoryException) static TexViewServiceException
mapOMRSUserNotAuthorizedException
(String className, String methodName, UserNotAuthorizedException repositoryException)
-
Constructor Details
-
TexExceptionHandler
public TexExceptionHandler()
-
-
Method Details
-
captureCheckedException
public static void captureCheckedException(FFDCResponse response, OCFCheckedExceptionBase error, String exceptionClassName) Method for capturing an exception into a REST response. Set the exception information into the response. This exception capture handler strips off the messageId from the front of the message as the message is intended for user-consumption.- Parameters:
response
- REST Responseerror
- returned response.exceptionClassName
- class name of the exception to recreate
-
mapOMRSUserNotAuthorizedException
public static TexViewServiceException mapOMRSUserNotAuthorizedException(String className, String methodName, UserNotAuthorizedException repositoryException) -
mapOMRSRepositoryErrorException
public static TexViewServiceException mapOMRSRepositoryErrorException(String className, String methodName, RepositoryErrorException repositoryException) -
mapOMRSInvalidParameterException
public static TexViewServiceException mapOMRSInvalidParameterException(String className, String methodName, InvalidParameterException repositoryException)
-