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:
  • Constructor Details

    • DataValidationFailedException

      public DataValidationFailedException(YangInstanceIdentifier path, String message)
      Create a new instance.
      Parameters:
      path - Object path which caused this exception
      message - 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 exception
      message - Specific message describing the failure
      cause - Exception which triggered this failure, may be null
  • Method Details

    • getPath

      public YangInstanceIdentifier getPath()
      Returns the offending object path.
      Returns:
      Path of the offending object