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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcaptureConfigurationErrorException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException error) Set the exception information into the response.voidcaptureInvalidParameterException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException error) Set the exception information into the response.voidcaptureNotAuthorizedException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGNotAuthorizedException error) Set the exception information into the response.voidcaptureNotAuthorizedException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException error) Set the exception information into the response.voidcapturePlatformRuntimeException(String serverName, String methodName, org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, Throwable runtimeException) Set the exception information into the response.voidcapturePlatformRuntimeException(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
-
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 instancemethodName- method calledresponse- REST ResponseruntimeException- 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 calledresponse- REST ResponseruntimeException- returned error.
-
captureConfigurationErrorException
public void captureConfigurationErrorException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGConfigurationErrorException error) Set the exception information into the response.- Parameters:
response- REST Responseerror- returned response.
-
captureInvalidParameterException
public void captureInvalidParameterException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, org.odpi.openmetadata.adminservices.ffdc.exception.OMAGInvalidParameterException error) Set the exception information into the response.- Parameters:
response- REST Responseerror- returned response.
-
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 Responseerror- returned response.
-
captureNotAuthorizedException
public void captureNotAuthorizedException(org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase response, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException error) Set the exception information into the response.- Parameters:
response- REST Responseerror- returned response.
-