...
https://gerrit.nordix.org/#/c/onap/ccsdk/features/+/6477/
Java Doc
External Resources
https://wiki.onap.org/display/DW/Data+Representation
...
These are the kind of exceptions thrown by the system currently.
Expand |
---|
title | Study of ODL exceptions |
---|
|
# | 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 |
|
Proposed grouping of interface methods:
Interface Name | Interface Definition | Interface Capabilities |
---|
Model Interface | Behavior interface that represents cps modules. | - Create a module set
- Add modules to a module set
- Read all modules
- Validate modules
- Upgrade a module set (individual module upgrade)
- Create a module set and validate it against a module reference (using a separate SPI)
|
Data Interface | Behavior interface that represents CPS data. | - Create a DataNode under an anchor.
- Delete a dataspace
- Create a dataspace
- Create an anchor
- Read an anchor of a particular DataNode
- Read an anchor in a namespace and dataspace
- Read all anchors for one dataspace
- Delete an anchor for a namespace in a dataspace
- Associate an anchor to a module set
- Associate an dataspace to a anchor
- Read all dataspaces
- Create a DataNode under another DataNode.
- Associate an a DataNode to a anchor
|
Query Interface | Provides the capability to query CPS data using XPaths. | - Read the parent of a DataNode that matches an xpath expression
- Read all DataNodes under an anchor point
- Read the anchor of a DataNode
- Read all DataNodes that match a schemaNodeIdentifier
|
Java Doc
...