| Package | Description |
|---|---|
| org.odpi.openmetadata.commonservices.ffdc |
The FFDC Services provide common exceptions and error handling for service running in OMAG Servers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InvalidParameterHandler.handleWrongTypeForGUIDException(String guid,
String methodName,
String actualType,
String expectedType)
Throw an exception if the supplied guid returned an instance of the wrong type
|
void |
InvalidParameterHandler.throwCannotDeleteElementInUse(String guid,
String type,
String serviceName,
String methodName)
Throw an exception to indicate that the call to a method is not supported.
|
void |
InvalidParameterHandler.throwMethodNotSupported(String userId,
String serviceName,
String serverName,
String methodName)
Throw an exception to indicate that the call to a method is not supported.
|
void |
InvalidParameterHandler.throwUniqueNameInUse(String uniqueName,
String uniqueNameParameterName,
String typeName,
String serviceName,
String methodName)
Report the fact that a unique name that was requested for a new entity is already in use or not a permitted value.
|
void |
InvalidParameterHandler.throwUnknownElement(String userId,
String guid,
String type,
String serviceName,
String serverName,
String methodName)
Throw an exception to indicate that the requested element is not recognized.
|
void |
InvalidParameterHandler.validateAnchorGUID(String anchorGUID,
String anchorGUIDParameterName,
EntityDetail anchorEntity,
String elementGUID,
String elementTypeName,
String methodName)
When attached elements are being retrieved for an anchor, this method checks that the anchor is set up correctly
in the element's anchors classification.
|
void |
InvalidParameterHandler.validateAssetInSupportedZone(String assetGUID,
String parameterName,
List<String> assetZones,
List<String> supportedZones,
String serviceName,
String methodName)
Compare the supported zones with the zones stored in the asset.
|
void |
InvalidParameterHandler.validateConnection(Connection connection,
String parameterName,
String methodName)
Throw an exception if the supplied connection is null
|
void |
InvalidParameterHandler.validateEnum(Object enumValue,
String parameterName,
String methodName)
Throw an exception if the supplied enum is null
|
void |
InvalidParameterHandler.validateGUID(String guid,
String guidParameter,
String methodName)
Throw an exception if the supplied GUID is null
|
void |
InvalidParameterHandler.validateInstanceProvenanceForUpdate(String instanceGUID,
String parameterName,
ElementHeader instanceHeader,
ElementOrigin expectedOrigin,
String expectedMetadataCollectionGUID,
String expectedMetadataCollectionName,
String serviceName,
String methodName)
Validate that an instance is from the expected metadata collection.
|
void |
InvalidParameterHandler.validateName(String name,
String nameParameter,
String methodName)
Throw an exception if the supplied name is null
|
void |
InvalidParameterHandler.validateObject(Object object,
String nameParameter,
String methodName)
Throw an exception if the supplied object is null
|
void |
InvalidParameterHandler.validateOMAGServerPlatformURL(String omagServerPlatformURL,
String methodName)
Throw an exception if a server URL or has not been supplied.
|
void |
InvalidParameterHandler.validateOMAGServerPlatformURL(String omagServerPlatformURL,
String serverName,
String methodName)
Throw an exception if a server URL or has not been supplied.
|
int |
InvalidParameterHandler.validatePaging(int startFrom,
int pageSize,
String methodName)
Throw an exception if the supplied paging values don't make sense.
|
void |
InvalidParameterHandler.validateSearchString(String searchString,
String searchParameter,
String methodName)
Throw an exception if the supplied search string is null
|
void |
InvalidParameterHandler.validateStringArray(List<String> stringArray,
String parameterName,
String methodName)
Throw an exception if the supplied array is null or empty
|
void |
InvalidParameterHandler.validateText(String text,
String parameterName,
String methodName)
Throw an exception if the supplied text field is null
|
String |
InvalidParameterHandler.validateTypeName(String typeName,
String superTypeName,
String serviceName,
String methodName,
OMRSRepositoryHelper repositoryHelper)
Throw an exception if the supplied type name is not of the correct subclass
|
void |
InvalidParameterHandler.validateUserId(String userId,
String methodName)
Throw an exception if the supplied userId is null
|
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.