Class OMAGServerExceptionHandler
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
org.odpi.openmetadata.adminservices.server.OMAGServerExceptionHandler
OMAGServerExceptionHandler provides common error handling routines for the admin services
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcaptureConfigurationErrorException(FFDCResponseBase response, OMAGConfigurationErrorException error) Set the exception information into the response.voidSet the exception information into the response.voidcaptureNotAuthorizedException(FFDCResponseBase response, OMAGNotAuthorizedException error) Set the exception information into the response.voidcaptureNotAuthorizedException(FFDCResponseBase response, UserNotAuthorizedException error) Set the exception information into the response.voidcapturePlatformRuntimeException(String serverName, String methodName, FFDCResponseBase response, Exception runtimeException) Set the exception information into the response.voidcapturePlatformRuntimeException(String methodName, FFDCResponseBase response, Exception runtimeException) Set the exception information into the response.Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
captureCheckedException, captureCheckedException, captureInvalidParameterException, capturePropertyServerException, captureRuntimeExceptions, captureUserNotAuthorizedException, detectAndThrowInvalidParameterException, detectAndThrowInvalidParameterException, detectAndThrowPropertyServerException, detectAndThrowPropertyServerException, detectAndThrowStandardExceptions, detectAndThrowUserNotAuthorizedException, detectAndThrowUserNotAuthorizedException, handleBadType, handleInvalidCallToServer, handleInvalidPropertiesObject, handleMissingValue, handleNoRequestBody, handleNoRequestBody, handleUnexpectedException
-
Constructor Details
-
OMAGServerExceptionHandler
public OMAGServerExceptionHandler()Default constructor
-
-
Method Details
-
capturePlatformRuntimeException
public void capturePlatformRuntimeException(String serverName, String methodName, FFDCResponseBase response, Exception 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, Exception runtimeException) Set the exception information into the response.- Parameters:
methodName- method calledresponse- REST ResponseruntimeException- returned error.
-
captureConfigurationErrorException
public void captureConfigurationErrorException(FFDCResponseBase response, OMAGConfigurationErrorException error) Set the exception information into the response.- Parameters:
response- REST Responseerror- returned response.
-
captureInvalidParameterException
public void captureInvalidParameterException(FFDCResponseBase response, OMAGInvalidParameterException error) Set the exception information into the response.- Parameters:
response- REST Responseerror- returned response.
-
captureNotAuthorizedException
public void captureNotAuthorizedException(FFDCResponseBase response, OMAGNotAuthorizedException error) Set the exception information into the response.- Parameters:
response- REST Responseerror- returned response.
-
captureNotAuthorizedException
public void captureNotAuthorizedException(FFDCResponseBase response, UserNotAuthorizedException error) Set the exception information into the response.- Parameters:
response- REST Responseerror- returned response.
-