Class TexExceptionHandler

java.lang.Object
org.odpi.openmetadata.viewservices.tex.api.ffdc.TexExceptionHandler

public class TexExceptionHandler extends Object
  • Constructor Details

    • TexExceptionHandler

      public TexExceptionHandler()
  • Method Details

    • captureCheckedException

      public static void captureCheckedException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponse response, org.odpi.openmetadata.frameworks.connectors.ffdc.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 Response
      error - returned response.
      exceptionClassName - class name of the exception to recreate
    • mapOMRSUserNotAuthorizedException

      public static TexViewServiceException mapOMRSUserNotAuthorizedException(String className, String methodName, org.odpi.openmetadata.repositoryservices.ffdc.exception.UserNotAuthorizedException repositoryException)
    • mapOMRSRepositoryErrorException

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

      public static TexViewServiceException mapOMRSInvalidParameterException(String className, String methodName, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException repositoryException)