Class DinoExceptionHandler
- java.lang.Object
-
- org.odpi.openmetadata.viewservices.dino.api.ffdc.DinoExceptionHandler
-
public class DinoExceptionHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description DinoExceptionHandler()
-
Method Summary
-
-
-
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 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)
-
-