Class TexExceptionHandler


  • public class TexExceptionHandler
    extends java.lang.Object
    • Constructor Detail

      • TexExceptionHandler

        public TexExceptionHandler()
    • Method Detail

      • captureCheckedException

        public static void captureCheckedException​(FFDCResponse response,
                                                   OCFCheckedExceptionBase error,
                                                   java.lang.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 Response
        error - returned response.
        exceptionClassName - class name of the exception to recreate
      • mapOMRSUserNotAuthorizedException

        public static TexViewServiceException mapOMRSUserNotAuthorizedException​(java.lang.String className,
                                                                                java.lang.String methodName,
                                                                                org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException repositoryException)
      • mapOMRSRepositoryErrorException

        public static TexViewServiceException mapOMRSRepositoryErrorException​(java.lang.String className,
                                                                              java.lang.String methodName,
                                                                              org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException repositoryException)
      • mapOMRSInvalidParameterException

        public static TexViewServiceException mapOMRSInvalidParameterException​(java.lang.String className,
                                                                               java.lang.String methodName,
                                                                               org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException repositoryException)