Class AdminClientRESTExceptionHandler
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
org.odpi.openmetadata.adminservices.client.rest.AdminClientRESTExceptionHandler
AdminClientRESTExceptionHandler is managing the receipt of exceptions in the response from a REST call
and converting them into Admin Exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddetectAndThrowAdminExceptions(FFDCResponseBase restResult) Throw an exception if it is encoded in the REST response.voidlogRESTCallException(String serverPlatformURLRoot, String methodName, Exception error) Provide detailed logging for exceptions.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
-
AdminClientRESTExceptionHandler
public AdminClientRESTExceptionHandler()
-
-
Method Details
-
detectAndThrowAdminExceptions
public void detectAndThrowAdminExceptions(FFDCResponseBase restResult) throws OMAGInvalidParameterException, OMAGNotAuthorizedException, OMAGConfigurationErrorException Throw an exception if it is encoded in the REST response.- Parameters:
restResult- response from the rest call. This generated in the remote server.- Throws:
OMAGInvalidParameterException- one of the parameters is invalid.OMAGNotAuthorizedException- the user is not authorized to make this request.OMAGConfigurationErrorException- configuration error
-
logRESTCallException
public void logRESTCallException(String serverPlatformURLRoot, String methodName, Exception error) throws OMAGConfigurationErrorException Provide detailed logging for exceptions.- Parameters:
serverPlatformURLRoot- platform that was being called.methodName- calling methoderror- resulting exception- Throws:
OMAGConfigurationErrorException- wrapping exception
-