X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fyang-common%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fcommon%2FYangError.java;h=a925c5bf270108a2fee3cf36d5e0bdded26cf035;hb=54ada00ff849ed9c8391d6e3ca1764cb9c84e53f;hp=3c01af26b9c86bf7801c1da9cf715102c5be7aec;hpb=57f28636b0369e1b2d450a436e7fa0a262c6f971;p=yangtools.git diff --git a/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangError.java b/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangError.java index 3c01af26b9..a925c5bf27 100644 --- a/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangError.java +++ b/common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/YangError.java @@ -36,14 +36,21 @@ public interface YangError { @NonNull ErrorSeverity getSeverity(); /** - * Returns the value of the argument of YANG error-app-tag keyword. + * Returns the error tag, as determined by the application reporting the error. * - * @return string with the application tag, or empty if it was not provided. + * @return an error tag. + */ + @NonNull String getErrorTag(); + + /** + * Returns the value of the argument of YANG {@code error-app-tag} statement. + * + * @return string with the application error tag, or empty if it was not provided. */ Optional getErrorAppTag(); /** - * Returns the value of the argument of YANG error-message keyword. + * Returns the value of the argument of YANG {@code error-message} statement. * * @return string with the error message, or empty if it was not provided. */