Class DataValidationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opendaylight.yangtools.yang.data.tree.api.DataValidationFailedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConflictingModificationAppliedException
,IncorrectDataStructureException
,ModifiedNodeDoesNotExistException
,RequiredElementCountException
,UniqueConstraintException
Exception thrown when a proposed change fails validation before being applied into the datastore. This can have
multiple reasons, for example the datastore has been concurrently modified such that a conflicting node is present,
or the modification is structurally incorrect.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDataValidationFailedException
(YangInstanceIdentifier path, String message) Create a new instance.DataValidationFailedException
(YangInstanceIdentifier path, String message, Throwable cause) Create a new instance, initializing the cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataValidationFailedException
Create a new instance.- Parameters:
path
- Object path which caused this exceptionmessage
- Specific message describing the failure
-
DataValidationFailedException
Create a new instance, initializing the cause.- Parameters:
path
- Object path which caused this exceptionmessage
- Specific message describing the failurecause
- Exception which triggered this failure, may be null
-
-
Method Details
-
getPath
Returns the offending object path.- Returns:
- Path of the offending object
-