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
public class DataValidationFailedException extends Exception
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataValidationFailedException(YangInstanceIdentifier path, String message)
Create a new instance.DataValidationFailedException(YangInstanceIdentifier path, String message, Throwable cause)
Create a new instance, initializing the cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YangInstanceIdentifier
getPath()
Returns the offending object path.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DataValidationFailedException
public DataValidationFailedException(YangInstanceIdentifier path, String message)
Create a new instance.- Parameters:
path
- Object path which caused this exceptionmessage
- Specific message describing the failure
-
DataValidationFailedException
public DataValidationFailedException(YangInstanceIdentifier path, String message, Throwable cause)
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 Detail
-
getPath
public YangInstanceIdentifier getPath()
Returns the offending object path.- Returns:
- Path of the offending object
-
-