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

      • getErrorTag

        @NonNull String getErrorTag()
        Returns the error tag, as determined by the application reporting the error.
        Returns:
        an error tag.
      • getErrorAppTag

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

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