Class LineageWarehouseExceptionHandler
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
org.odpi.openmetadata.governanceservers.lineagewarehouse.util.LineageWarehouseExceptionHandler
Extend the standard REST exception handler to support the LineageWarehouseException.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
detectAndThrowLineageWarehouseException
(String methodName, FFDCResponseBase restResult) Throw an LineageWarehouseException if it is encoded in the REST 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, handleNoRequestBody, handleUnexpectedException
-
Constructor Details
-
LineageWarehouseExceptionHandler
public LineageWarehouseExceptionHandler()
-
-
Method Details
-
captureOpenLineageException
-
detectAndThrowLineageWarehouseException
public void detectAndThrowLineageWarehouseException(String methodName, FFDCResponseBase restResult) throws LineageWarehouseException Throw an LineageWarehouseException if it is encoded in the REST response.- Parameters:
methodName
- name of the method calledrestResult
- response from the rest call. This generated in the remote server.- Throws:
LineageWarehouseException
- encoded exception from the server
-