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 TypeMethodDescriptionvoidcaptureAssetCatalogException(org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogOMASAPIResponse response, org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogException e) Capture the AssetCatalogException and set on the AssetCatalogOMASAPIResponse corresponding HTTP codevoidcaptureOMRSCheckedExceptionBase(org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogOMASAPIResponse response, org.odpi.openmetadata.repositoryservices.ffdc.exception.OMRSCheckedExceptionBase e) Capture the OMRSCheckedExceptionBase exception and set on the AssetCatalogOMASAPIResponse corresponding HTTP code
-
Constructor Details
-
ExceptionHandler
public ExceptionHandler()
-
-
Method Details
-
captureOMRSCheckedExceptionBase
public void captureOMRSCheckedExceptionBase(org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogOMASAPIResponse response, org.odpi.openmetadata.repositoryservices.ffdc.exception.OMRSCheckedExceptionBase e) Capture the OMRSCheckedExceptionBase exception and set on the AssetCatalogOMASAPIResponse corresponding HTTP code- Parameters:
response- - AssetCatalogOMASAPIResponse responsee- - OMRSCheckedExceptionBase exception
-
captureAssetCatalogException
public void captureAssetCatalogException(org.odpi.openmetadata.accessservices.assetcatalog.model.rest.responses.AssetCatalogOMASAPIResponse response, org.odpi.openmetadata.accessservices.assetcatalog.exception.AssetCatalogException e) Capture the AssetCatalogException and set on the AssetCatalogOMASAPIResponse corresponding HTTP code- Parameters:
response- AssetCatalogOMASAPIResponsee- AssetCatalogException exception
-