java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.util.ExceptionHandler

public class ExceptionHandler extends Object
Exception handler used to capture OMRSCheckedExceptionBase and AssetCatalogException
  • Constructor Details

    • ExceptionHandler

      public ExceptionHandler()
  • Method Details

    • captureOMRSCheckedExceptionBase

      public void captureOMRSCheckedExceptionBase(AssetCatalogOMASAPIResponse response, OMRSCheckedExceptionBase e)
      Capture the OMRSCheckedExceptionBase exception and set on the AssetCatalogOMASAPIResponse corresponding HTTP code
      Parameters:
      response - - AssetCatalogOMASAPIResponse response
      e - - OMRSCheckedExceptionBase exception
    • captureAssetCatalogException

      public void captureAssetCatalogException(AssetCatalogOMASAPIResponse response, AssetCatalogException e)
      Capture the AssetCatalogException and set on the AssetCatalogOMASAPIResponse corresponding HTTP code
      Parameters:
      response - AssetCatalogOMASAPIResponse
      e - AssetCatalogException exception