Class ExceptionHandler


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

      • ExceptionHandler

        public ExceptionHandler()
    • Method Detail

      • 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
      • captureAssetCatalogExeption

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