Interface Error
- All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>,org.opendaylight.yangtools.binding.BindingObject,org.opendaylight.yangtools.binding.DataContainer,org.opendaylight.yangtools.binding.Grouping
- All Known Subinterfaces:
LastReceivedError,LastSentError
@Generated("mdsal-binding-generator")
public interface Error
extends org.opendaylight.yangtools.binding.Grouping
PCEP Error-type/value.
This class represents the following YANG schema fragment defined in module pcep-session-stats
grouping error {
leaf error-type {
type uint8;
default 0;
}
leaf error-value {
type uint8;
default 0;
}
}
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint8Return errorType, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8Return errorValue, ornullif it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return errorType, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return errorValue, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getErrorType
org.opendaylight.yangtools.yang.common.Uint8 getErrorType()Return errorType, ornullif it is not present.- Returns:
Uint8errorType, ornullif it is not present.
-
requireErrorType
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireErrorType()Return errorType, guaranteed to be non-null.- Returns:
Uint8errorType, guaranteed to be non-null.- Throws:
NoSuchElementException- if errorType is not present
-
getErrorValue
org.opendaylight.yangtools.yang.common.Uint8 getErrorValue()Return errorValue, ornullif it is not present.- Returns:
Uint8errorValue, ornullif it is not present.
-
requireErrorValue
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireErrorValue()Return errorValue, guaranteed to be non-null.- Returns:
Uint8errorValue, guaranteed to be non-null.- Throws:
NoSuchElementException- if errorValue is not present
-