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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
captureConfigurationErrorException
(FFDCResponseBase response, OMAGConfigurationErrorException error) Set the exception information into the response.void
Set the exception information into the response.void
captureNotAuthorizedException
(FFDCResponseBase response, OMAGNotAuthorizedException error) Set the exception information into the response.void
captureNotAuthorizedException
(FFDCResponseBase response, UserNotAuthorizedException error) Set the exception information into the response.void
capturePlatformRuntimeException
(String serverName, String methodName, FFDCResponseBase response, Throwable runtimeException) Set the exception information into the response.void
capturePlatformRuntimeException
(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, 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, 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.
-
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.
-