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:
LastReceivedError, LastSentError

@Generated("mdsal-binding-generator") public interface Error extends org.opendaylight.yangtools.yang.binding.DataObject
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;
   }
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yangtools.yang.common.Uint8
    Return errorType, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint8
    Return errorValue, or null if it is not present.
    Class<? extends Error>
     
    default @NonNull org.opendaylight.yangtools.yang.common.Uint8
    Return errorType, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint8
    Return errorValue, guaranteed to be non-null.
  • Field Details

    • QNAME

      static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends Error> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • getErrorType

      org.opendaylight.yangtools.yang.common.Uint8 getErrorType()
      Return errorType, or null if it is not present.
      Returns:
      Uint8 errorType, or null if it is not present.
    • requireErrorType

      default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireErrorType()
      Return errorType, guaranteed to be non-null.
      Returns:
      Uint8 errorType, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if errorType is not present
    • getErrorValue

      org.opendaylight.yangtools.yang.common.Uint8 getErrorValue()
      Return errorValue, or null if it is not present.
      Returns:
      Uint8 errorValue, or null if it is not present.
    • requireErrorValue

      default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireErrorValue()
      Return errorValue, guaranteed to be non-null.
      Returns:
      Uint8 errorValue, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if errorValue is not present