Class RequiredElementCountException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opendaylight.yangtools.yang.data.tree.api.DataValidationFailedException
org.opendaylight.yangtools.yang.data.tree.api.RequiredElementCountException
- All Implemented Interfaces:
Serializable
,YangNetconfErrorAware
@Beta
@NonNullByDefault
public final class RequiredElementCountException
extends DataValidationFailedException
implements YangNetconfErrorAware
Exception thrown when
min-elements
or max-element
statement restrictions are violated.- Author:
- Robert Varga
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequiredElementCountException
(YangInstanceIdentifier path, int actualCount, int minimumCount, int maximumCount, String message) RequiredElementCountException
(YangInstanceIdentifier path, int actualCount, int minimumCount, int maximumCount, String format, Object... args) -
Method Summary
Methods inherited from class org.opendaylight.yangtools.yang.data.tree.api.DataValidationFailedException
getPath
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RequiredElementCountException
public RequiredElementCountException(YangInstanceIdentifier path, int actualCount, int minimumCount, int maximumCount, String message) -
RequiredElementCountException
public RequiredElementCountException(YangInstanceIdentifier path, int actualCount, int minimumCount, int maximumCount, String format, Object... args)
-
-
Method Details
-
getMinimumCount
-
getMaximumCount
-
getActualCount
public int getActualCount() -
getNetconfErrors
Description copied from interface:YangNetconfErrorAware
Return theYangNetconfError
s associated with this objects.- Specified by:
getNetconfErrors
in interfaceYangNetconfErrorAware
- Returns:
- Associated YangNetconfErrors
-