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 whenmin-elements
ormax-element
statement restrictions are violated.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequiredElementCountException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActualCount()
OptionalInt
getMaximumCount()
OptionalInt
getMinimumCount()
List<YangNetconfError>
getNetconfErrors()
Return theYangNetconfError
s associated with this objects.-
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 Detail
-
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 Detail
-
getMinimumCount
public OptionalInt getMinimumCount()
-
getMaximumCount
public OptionalInt getMaximumCount()
-
getActualCount
public int getActualCount()
-
getNetconfErrors
public List<YangNetconfError> getNetconfErrors()
Description copied from interface:YangNetconfErrorAware
Return theYangNetconfError
s associated with this objects.- Specified by:
getNetconfErrors
in interfaceYangNetconfErrorAware
- Returns:
- Associated YangNetconfErrors
-
-