Class ExceptionHandler
java.lang.Object
org.odpi.openmetadata.accessservices.assetcatalog.util.ExceptionHandler
Exception handler used to capture OMRSCheckedExceptionBase and AssetCatalogException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Capture the AssetCatalogException and set on the AssetCatalogOMASAPIResponse corresponding HTTP codevoid
Capture the OMRSCheckedExceptionBase exception and set on the AssetCatalogOMASAPIResponse corresponding HTTP code
-
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 responsee
- - OMRSCheckedExceptionBase exception
-
captureAssetCatalogException
public void captureAssetCatalogException(AssetCatalogOMASAPIResponse response, AssetCatalogException e) Capture the AssetCatalogException and set on the AssetCatalogOMASAPIResponse corresponding HTTP code- Parameters:
response
- AssetCatalogOMASAPIResponsee
- AssetCatalogException exception
-