Class TexExceptionHandler
- java.lang.Object
-
- org.odpi.openmetadata.viewservices.tex.api.ffdc.TexExceptionHandler
-
public class TexExceptionHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description TexExceptionHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcaptureCheckedException(FFDCResponse response, OCFCheckedExceptionBase error, String exceptionClassName)Method for capturing an exception into a REST response.static TexViewServiceExceptionmapOMRSInvalidParameterException(String className, String methodName, InvalidParameterException repositoryException)static TexViewServiceExceptionmapOMRSRepositoryErrorException(String className, String methodName, RepositoryErrorException repositoryException)static TexViewServiceExceptionmapOMRSUserNotAuthorizedException(String className, String methodName, UserNotAuthorizedException repositoryException)
-
-
-
Method Detail
-
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)
-
-