Class OMAGServerExceptionHandler


  • public class OMAGServerExceptionHandler
    extends RESTExceptionHandler
    OMAGServerExceptionHandler provides common error handling routines for the admin services
    • Constructor Detail

      • OMAGServerExceptionHandler

        public OMAGServerExceptionHandler()
        Default constructor
    • Method Detail

      • capturePlatformRuntimeException

        public void capturePlatformRuntimeException​(java.lang.String serverName,
                                                    java.lang.String methodName,
                                                    FFDCResponseBase response,
                                                    java.lang.Throwable runtimeException)
        Set the exception information into the response.
        Parameters:
        serverName - this server instance
        methodName - method called
        response - REST Response
        runtimeException - returned error.
      • capturePlatformRuntimeException

        public void capturePlatformRuntimeException​(java.lang.String methodName,
                                                    FFDCResponseBase response,
                                                    java.lang.Throwable runtimeException)
        Set the exception information into the response.
        Parameters:
        methodName - method called
        response - REST Response
        runtimeException - returned error.
      • captureNotAuthorizedException

        public void captureNotAuthorizedException​(FFDCResponseBase response,
                                                  org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException error)
        Set the exception information into the response.
        Parameters:
        response - REST Response
        error - returned response.