Class RexExceptionHandler
java.lang.Object
org.odpi.openmetadata.viewservices.rex.api.ffdc.RexExceptionHandler
-
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 RexViewServiceException
mapOMRSEntityHistoricalNotSupportedException
(String className, String methodName, FunctionNotSupportedException repositoryException) static RexViewServiceException
mapOMRSEntityNotKnownException
(String className, String methodName, String repositoryServerName, boolean enterpriseOption, EntityNotKnownException repositoryException) static RexViewServiceException
mapOMRSEntityProxyOnlyException
(String className, String methodName, EntityProxyOnlyException repositoryException) static RexViewServiceException
mapOMRSFunctionNotSupportedException
(String className, String methodName, FunctionNotSupportedException repositoryException) static RexViewServiceException
mapOMRSInvalidParameterException
(String className, String methodName, InvalidParameterException repositoryException) static RexViewServiceException
mapOMRSPagingErrorException
(String className, String methodName, PagingErrorException repositoryException) static RexViewServiceException
mapOMRSPropertyErrorException
(String className, String methodName, PropertyErrorException repositoryException) static RexViewServiceException
mapOMRSRelationshipNotKnownException
(String className, String methodName, String repositoryServerName, boolean enterpriseOption, RelationshipNotKnownException repositoryException) static RexViewServiceException
mapOMRSRepositoryErrorException
(String className, String methodName, RepositoryErrorException repositoryException) static RexViewServiceException
mapOMRSTypeErrorException
(String className, String methodName, TypeErrorException repositoryException) static RexViewServiceException
mapOMRSUserNotAuthorizedException
(String className, String methodName, UserNotAuthorizedException repositoryException)
-
Constructor Details
-
RexExceptionHandler
public RexExceptionHandler()
-
-
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 RexViewServiceException mapOMRSUserNotAuthorizedException(String className, String methodName, UserNotAuthorizedException repositoryException) -
mapOMRSRepositoryErrorException
public static RexViewServiceException mapOMRSRepositoryErrorException(String className, String methodName, RepositoryErrorException repositoryException) -
mapOMRSInvalidParameterException
public static RexViewServiceException mapOMRSInvalidParameterException(String className, String methodName, InvalidParameterException repositoryException) -
mapOMRSEntityNotKnownException
public static RexViewServiceException mapOMRSEntityNotKnownException(String className, String methodName, String repositoryServerName, boolean enterpriseOption, EntityNotKnownException repositoryException) -
mapOMRSEntityProxyOnlyException
public static RexViewServiceException mapOMRSEntityProxyOnlyException(String className, String methodName, EntityProxyOnlyException repositoryException) -
mapOMRSEntityHistoricalNotSupportedException
public static RexViewServiceException mapOMRSEntityHistoricalNotSupportedException(String className, String methodName, FunctionNotSupportedException repositoryException) -
mapOMRSRelationshipNotKnownException
public static RexViewServiceException mapOMRSRelationshipNotKnownException(String className, String methodName, String repositoryServerName, boolean enterpriseOption, RelationshipNotKnownException repositoryException) -
mapOMRSTypeErrorException
public static RexViewServiceException mapOMRSTypeErrorException(String className, String methodName, TypeErrorException repositoryException) -
mapOMRSPropertyErrorException
public static RexViewServiceException mapOMRSPropertyErrorException(String className, String methodName, PropertyErrorException repositoryException) -
mapOMRSPagingErrorException
public static RexViewServiceException mapOMRSPagingErrorException(String className, String methodName, PagingErrorException repositoryException) -
mapOMRSFunctionNotSupportedException
public static RexViewServiceException mapOMRSFunctionNotSupportedException(String className, String methodName, FunctionNotSupportedException repositoryException)
-