Class RexExceptionHandler


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

      • RexExceptionHandler

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

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

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

        public static RexViewServiceException mapOMRSEntityNotKnownException​(java.lang.String className,
                                                                             java.lang.String methodName,
                                                                             java.lang.String repositoryServerName,
                                                                             boolean enterpriseOption,
                                                                             org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityNotKnownException repositoryException)
      • mapOMRSEntityProxyOnlyException

        public static RexViewServiceException mapOMRSEntityProxyOnlyException​(java.lang.String className,
                                                                              java.lang.String methodName,
                                                                              org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityProxyOnlyException repositoryException)
      • mapOMRSEntityHistoricalNotSupportedException

        public static RexViewServiceException mapOMRSEntityHistoricalNotSupportedException​(java.lang.String className,
                                                                                           java.lang.String methodName,
                                                                                           org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException repositoryException)
      • mapOMRSRelationshipNotKnownException

        public static RexViewServiceException mapOMRSRelationshipNotKnownException​(java.lang.String className,
                                                                                   java.lang.String methodName,
                                                                                   java.lang.String repositoryServerName,
                                                                                   boolean enterpriseOption,
                                                                                   org.odpi.openmetadata.repositoryservices.ffdc.exception.RelationshipNotKnownException repositoryException)
      • mapOMRSTypeErrorException

        public static RexViewServiceException mapOMRSTypeErrorException​(java.lang.String className,
                                                                        java.lang.String methodName,
                                                                        org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException repositoryException)
      • mapOMRSPropertyErrorException

        public static RexViewServiceException mapOMRSPropertyErrorException​(java.lang.String className,
                                                                            java.lang.String methodName,
                                                                            org.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorException repositoryException)
      • mapOMRSPagingErrorException

        public static RexViewServiceException mapOMRSPagingErrorException​(java.lang.String className,
                                                                          java.lang.String methodName,
                                                                          org.odpi.openmetadata.repositoryservices.ffdc.exception.PagingErrorException repositoryException)
      • mapOMRSFunctionNotSupportedException

        public static RexViewServiceException mapOMRSFunctionNotSupportedException​(java.lang.String className,
                                                                                   java.lang.String methodName,
                                                                                   org.odpi.openmetadata.repositoryservices.ffdc.exception.FunctionNotSupportedException repositoryException)