Class DinoExceptionHandler


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

      • DinoExceptionHandler

        public DinoExceptionHandler()
    • 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 DinoViewServiceException mapOMRSUserNotAuthorizedException​(java.lang.String className,
                                                                                 java.lang.String methodName,
                                                                                 org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException repositoryException)
      • mapOMRSInvalidParameterException

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

        public static DinoViewServiceException mapOCFPropertyServerException​(java.lang.String className,
                                                                             java.lang.String methodName,
                                                                             java.lang.String platformName,
                                                                             PropertyServerException ocfException)
      • mapOMAGInvalidParameterException

        public static DinoViewServiceException mapOMAGInvalidParameterException​(java.lang.String className,
                                                                                java.lang.String methodName,
                                                                                org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException omagException)
      • mapOMAGNotAuthorizedException

        public static DinoViewServiceException mapOMAGNotAuthorizedException​(java.lang.String className,
                                                                             java.lang.String methodName,
                                                                             java.lang.String userName,
                                                                             org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException omagException)
      • mapOMAGConfigurationErrorException

        public static DinoViewServiceException mapOMAGConfigurationErrorException​(java.lang.String className,
                                                                                  java.lang.String methodName,
                                                                                  java.lang.String serverName,
                                                                                  org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException omagException)