Class TexExceptionHandler
java.lang.Object
org.odpi.openmetadata.viewservices.tex.api.ffdc.TexExceptionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcaptureCheckedException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponse response, org.odpi.openmetadata.frameworks.connectors.ffdc.OCFCheckedExceptionBase error, String exceptionClassName) Method for capturing an exception into a REST response.static TexViewServiceExceptionmapOMRSInvalidParameterException(String className, String methodName, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException repositoryException) static TexViewServiceExceptionmapOMRSRepositoryErrorException(String className, String methodName, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException repositoryException) static TexViewServiceExceptionmapOMRSUserNotAuthorizedException(String className, String methodName, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException repositoryException)
-
Constructor Details
-
TexExceptionHandler
public TexExceptionHandler()
-
-
Method Details
-
captureCheckedException
public static void captureCheckedException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponse response, org.odpi.openmetadata.frameworks.connectors.ffdc.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, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException repositoryException) -
mapOMRSRepositoryErrorException
public static TexViewServiceException mapOMRSRepositoryErrorException(String className, String methodName, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException repositoryException) -
mapOMRSInvalidParameterException
public static TexViewServiceException mapOMRSInvalidParameterException(String className, String methodName, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException repositoryException)
-