Interface ErrorMessage
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
NodeErrorNotification
@Generated("mdsal-binding-generator")
public interface ErrorMessage
extends org.opendaylight.yangtools.yang.binding.DataObject
Error message structure.
This class represents the following YANG schema fragment defined in module flow-errors
grouping error-message { leaf type { type error-type; } leaf code { type uint16; } leaf data { type string; } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint16
getCode()
Return code, ornull
if it is not present.getData()
Return data, ornull
if it is not present.getType()
Return type, ornull
if it is not present.Class<? extends ErrorMessage>
default @NonNull org.opendaylight.yangtools.yang.common.Uint16
Return code, guaranteed to be non-null.default @NonNull String
Return data, guaranteed to be non-null.default @NonNull ErrorType
Return type, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends ErrorMessage> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getType
ErrorType getType()Return type, ornull
if it is not present.- Returns:
ErrorType
type, ornull
if it is not present.
-
requireType
Return type, guaranteed to be non-null.- Returns:
ErrorType
type, guaranteed to be non-null.- Throws:
NoSuchElementException
- if type is not present
-
getCode
org.opendaylight.yangtools.yang.common.Uint16 getCode()Return code, ornull
if it is not present.- Returns:
Uint16
code, ornull
if it is not present.
-
requireCode
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireCode()Return code, guaranteed to be non-null.- Returns:
Uint16
code, guaranteed to be non-null.- Throws:
NoSuchElementException
- if code is not present
-
getData
String getData()Return data, ornull
if it is not present.- Returns:
String
data, ornull
if it is not present.
-
requireData
Return data, guaranteed to be non-null.- Returns:
String
data, guaranteed to be non-null.- Throws:
NoSuchElementException
- if data is not present
-