Introduction
...
Expand |
---|
|
# | Class | Definition | Source | Proposed Exception Class |
---|
1 | YangValidationException | Unchecked exception thrown if yang definition is not valid according to {YangModelBasicValidationListener} | ODL Yang Parser (Yang Model) | YangValidationException | 2 | YangParseException | Unchecked exception thrown if unable to parse yang | ODL Yang Parser (Yang Model) | YangValidationException | 3 | YangSyntaxErrorException | Exception thrown if yang syntax is invalid | ODL Yang Parser (Yang Model) | YangValidationException | 4 | DataValidationException | Exception thrown when a the specified data is invalid | ODL Yang Parser (Yang Data) | YangDataValidationException | 5 | LeafRefDataValidationFailedException |
| ODL Yang Parser (Yang Data) | YangDataValidationException | 6 | LeafRefPathSyntaxErrorException |
| ODL Yang Parser (Yang Data) | YangDataValidationException | 7 | ModifiedNodeDoesNotExistException | Exception thrown when a proposed change fails validation before being applied into the Data Tree because tree node which child nodes are modified or written did not exist when transaction started and still does not exists when transaction is processed. Note if node existed in first place and was removed by other transaction, thrown exception should be ConflictingModificationAppliedException. | ODL Yang Parser (Yang Data) | NodeDoesNotExistException | 8 | ConflictingModificationAppliedException | Exception thrown when a proposed change fails validation before being applied into the Data Tree because the Data Tree has been modified in way that a conflicting node is present. | ODL Yang Parser (Yang Data) | DataModificationException | 9 | MissingSchemaSourceException | Exception thrown when a the specified schema source is not available. | ODL Yang Parser (Yang Model) | MissingSchemaSourceException | 10 | SchemaResolutionException | Exception thrown when a Schema Source fails to resolve. | ODL Yang Parser (Yang Model) | SchemaSourceException | 11 | SchemaValidationFailedException |
| ODL Yang Parser (Yang Model) | SchemaValidationException | 12 | OperationFailedException | A general base exception for an operation failure. | ? |
| 13 | AlreadyExistsException |
| Database duplicates | ModelAlreadyExistsException DataAlreadyExistsException | 14 | IO Exception |
|
| N/A |
|
Interface Proposal
can be found at : Interface Proposal for CPS
Proposed grouping of interface methods:
Interface Name | Interface Capabilities |
---|
ModuleStoreService | - String createModuleSet(String dataspaceName, String moduleSetName, InputStream modulesData);
- Collection<ModuleRef> getModuleReferences(String dataspaceName);
- Void deleteModuleSet(String dataspaceName, String moduleSetName);
|
CpsAdminService | - String createDataspace(String dataspaceName);
- Collection<String> getDataspaces();
- void deleteDataspace(String dataspaceName);
- String createAnchor(String dataspaceName, String anchorName);
- Collection<Anchor> getAnchors(String dataspaceName);
- Anchor getAnchor(String dataspaceName, String anchorName);
- void deleteAnchor(String dataspaceName, String anchorName);
- void associateAnchorToModuleSet(String dataspaceName, String moduleSetName, String anchorName);
|
DataService | - String addDataNode(String dataspaceName, String anchorName, DataNode dataNode);
- String addDataNode(String dataspaceName, String anchorName, String xPath, DataNode dataNode);
- Integer count(String dataspaceName, String anchorName, String cpsPath);
- Integer count(String dataspaceName, String cpsPath);
- void updateDataNode(String dataspaceName, String anchorName, DataNode dataNode);
- void setLeaf(String dataspaceName, String anchorName, String xPath, String leafName, Object leafValue);
|
QueryService | - DataNode getDataNode(String dataspaceName, String anchorName, String xPathId);
- Collection<DataNode> getDataNodes(String dataspaceName, String xPathId);
- Collection<DataNode> queryDataNodesByCPsPath(String dataspaceName, String cpsPath);
- Collection<DataNode> queryDataNodesBySchemaNodeIdentifier(String dataspaceName, String schemaNodeIdentifier);
|
...