Class DinoExceptionHandler
java.lang.Object
org.odpi.openmetadata.viewservices.dino.api.ffdc.DinoExceptionHandler
-
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 DinoViewServiceException
mapInvalidParameterException
(String className, String methodName, InvalidParameterException exception) static DinoViewServiceException
mapOCFInvalidParameterException
(String className, String methodName, InvalidParameterException ocfException) static DinoViewServiceException
mapOCFPropertyServerException
(String className, String methodName, String platformName, PropertyServerException ocfException) static DinoViewServiceException
mapOCFUserNotAuthorizedException
(String className, String methodName, String userName, UserNotAuthorizedException ocfException) static DinoViewServiceException
mapOMAGConfigurationErrorException
(String className, String methodName, String serverName, OMAGConfigurationErrorException omagException) static DinoViewServiceException
mapOMAGInvalidParameterException
(String className, String methodName, OMAGInvalidParameterException omagException) static DinoViewServiceException
mapOMAGNotAuthorizedException
(String className, String methodName, String userName, OMAGNotAuthorizedException omagException) static DinoViewServiceException
mapOMRSInvalidParameterException
(String className, String methodName, InvalidParameterException repositoryException) static DinoViewServiceException
mapOMRSUserNotAuthorizedException
(String className, String methodName, UserNotAuthorizedException repositoryException) static DinoViewServiceException
mapUserNotAuthorizedException
(String className, String methodName, UserNotAuthorizedException repositoryException)
-
Constructor Details
-
DinoExceptionHandler
public DinoExceptionHandler()
-
-
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 DinoViewServiceException mapOMRSUserNotAuthorizedException(String className, String methodName, UserNotAuthorizedException repositoryException) -
mapOMRSInvalidParameterException
public static DinoViewServiceException mapOMRSInvalidParameterException(String className, String methodName, InvalidParameterException repositoryException) -
mapOCFInvalidParameterException
public static DinoViewServiceException mapOCFInvalidParameterException(String className, String methodName, InvalidParameterException ocfException) -
mapOCFUserNotAuthorizedException
public static DinoViewServiceException mapOCFUserNotAuthorizedException(String className, String methodName, String userName, UserNotAuthorizedException ocfException) -
mapOCFPropertyServerException
public static DinoViewServiceException mapOCFPropertyServerException(String className, String methodName, String platformName, PropertyServerException ocfException) -
mapOMAGInvalidParameterException
public static DinoViewServiceException mapOMAGInvalidParameterException(String className, String methodName, OMAGInvalidParameterException omagException) -
mapOMAGNotAuthorizedException
public static DinoViewServiceException mapOMAGNotAuthorizedException(String className, String methodName, String userName, OMAGNotAuthorizedException omagException) -
mapOMAGConfigurationErrorException
public static DinoViewServiceException mapOMAGConfigurationErrorException(String className, String methodName, String serverName, OMAGConfigurationErrorException omagException) -
mapInvalidParameterException
public static DinoViewServiceException mapInvalidParameterException(String className, String methodName, InvalidParameterException exception) -
mapUserNotAuthorizedException
public static DinoViewServiceException mapUserNotAuthorizedException(String className, String methodName, UserNotAuthorizedException repositoryException)
-