Class LineageWarehouseExceptionHandler

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.RESTExceptionHandler
org.odpi.openmetadata.governanceservers.lineagewarehouse.util.LineageWarehouseExceptionHandler

public class LineageWarehouseExceptionHandler extends RESTExceptionHandler
Extend the standard REST exception handler to support the LineageWarehouseException.
  • Constructor Details

    • LineageWarehouseExceptionHandler

      public LineageWarehouseExceptionHandler()
  • Method Details

    • captureOpenLineageException

      public void captureOpenLineageException(FFDCResponseBase response, LineageWarehouseException e)
    • 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 called
      restResult - response from the rest call. This generated in the remote server.
      Throws:
      LineageWarehouseException - encoded exception from the server