Class OMAGServerExceptionHandler
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
-
- org.odpi.openmetadata.adminservices.OMAGServerExceptionHandler
-
public class OMAGServerExceptionHandler extends RESTExceptionHandler
OMAGServerExceptionHandler provides common error handling routines for the admin services
-
-
Constructor Summary
Constructors Constructor Description OMAGServerExceptionHandler()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcaptureNotAuthorizedException(FFDCResponseBase response, OMAGNotAuthorizedException error)Set the exception information into the response.voidcapturePlatformRuntimeException(String serverName, String methodName, FFDCResponseBase response, Throwable runtimeException)Set the exception information into the response.voidcapturePlatformRuntimeException(String methodName, FFDCResponseBase response, Throwable runtimeException)Set the exception information into the response.-
Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
captureCheckedException, captureCheckedException, captureExceptions, captureExceptions, captureInvalidParameterException, capturePropertyServerException, captureUserNotAuthorizedException, detectAndThrowInvalidParameterException, detectAndThrowInvalidParameterException, detectAndThrowPropertyServerException, detectAndThrowPropertyServerException, detectAndThrowStandardExceptions, detectAndThrowUserNotAuthorizedException, detectAndThrowUserNotAuthorizedException, handleBadType, handleInvalidPropertiesObject, handleMissingValue, handleNoRequestBody, handleUnexpectedException
-
-
-
-
Method Detail
-
capturePlatformRuntimeException
public void capturePlatformRuntimeException(String serverName, String methodName, FFDCResponseBase response, Throwable runtimeException)
Set the exception information into the response.- Parameters:
serverName- this server instancemethodName- method calledresponse- REST ResponseruntimeException- returned error.
-
capturePlatformRuntimeException
public void capturePlatformRuntimeException(String methodName, FFDCResponseBase response, Throwable runtimeException)
Set the exception information into the response.- Parameters:
methodName- method calledresponse- REST ResponseruntimeException- returned error.
-
captureNotAuthorizedException
public void captureNotAuthorizedException(FFDCResponseBase response, OMAGNotAuthorizedException error)
Set the exception information into the response.- Parameters:
response- REST Responseerror- returned response.
-
-