Class OMAGServerExceptionHandler

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

public class OMAGServerExceptionHandler extends org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
OMAGServerExceptionHandler provides common error handling routines for the admin services
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    captureNotAuthorizedException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException error)
    Set the exception information into the response.
    void
    capturePlatformRuntimeException(String serverName, String methodName, org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, Throwable runtimeException)
    Set the exception information into the response.
    void
    capturePlatformRuntimeException(String methodName, org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, Throwable runtimeException)
    Set the exception information into the response.

    Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler

    captureExceptions, captureExceptions, captureInvalidParameterException, capturePropertyServerException, captureUserNotAuthorizedException, detectAndThrowInvalidParameterException, detectAndThrowInvalidParameterException, detectAndThrowPropertyServerException, detectAndThrowPropertyServerException, detectAndThrowStandardExceptions, detectAndThrowUserNotAuthorizedException, detectAndThrowUserNotAuthorizedException, handleBadType, handleInvalidPropertiesObject, handleMissingValue, handleNoRequestBody, handleNoRequestBody, handleUnexpectedException

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OMAGServerExceptionHandler

      public OMAGServerExceptionHandler()
      Default constructor
  • Method Details

    • capturePlatformRuntimeException

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

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