Class OMAGServerExceptionHandler

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
org.odpi.openmetadata.adminservices.server.OMAGServerExceptionHandler

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

    • OMAGServerExceptionHandler

      public OMAGServerExceptionHandler()
      Default constructor
  • Method Details

    • capturePlatformRuntimeException

      public void capturePlatformRuntimeException(String serverName, String methodName, FFDCResponseBase response, 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(String methodName, FFDCResponseBase response, Throwable runtimeException)
      Set the exception information into the response.
      Parameters:
      methodName - method called
      response - REST Response
      runtimeException - returned error.
    • captureConfigurationErrorException

      public void captureConfigurationErrorException(FFDCResponseBase response, OMAGConfigurationErrorException error)
      Set the exception information into the response.
      Parameters:
      response - REST Response
      error - returned response.
    • captureInvalidParameterException

      public void captureInvalidParameterException(FFDCResponseBase response, OMAGInvalidParameterException error)
      Set the exception information into the response.
      Parameters:
      response - REST Response
      error - returned response.
    • captureNotAuthorizedException

      public void captureNotAuthorizedException(FFDCResponseBase response, OMAGNotAuthorizedException error)
      Set the exception information into the response.
      Parameters:
      response - REST Response
      error - returned response.
    • captureNotAuthorizedException

      public void captureNotAuthorizedException(FFDCResponseBase response, UserNotAuthorizedException error)
      Set the exception information into the response.
      Parameters:
      response - REST Response
      error - returned response.