Interface YangError

  • All Known Implementing Classes:
    YangInvalidValueException

    @Beta
    public interface YangError
    An error condition raised as a consequence of a YANG-defined contract. This interface should not be directly implemented, but rather should be attached to a well-defined Exception class.
    Author:
    Robert Varga
    • Method Detail

      • getErrorAppTag

        Optional<String> getErrorAppTag()
        Returns the value of the argument of YANG error-app-tag keyword.
        Returns:
        string with the application tag, or empty if it was not provided.
      • getErrorMessage

        Optional<String> getErrorMessage()
        Returns the value of the argument of YANG error-message keyword.
        Returns:
        string with the error message, or empty if it was not provided.