Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add YangError.getErrorTag()
[yangtools.git]
/
common
/
yang-common
/
src
/
main
/
java
/
org
/
opendaylight
/
yangtools
/
yang
/
common
/
YangError.java
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 3c01af26b9c86bf7801c1da9cf715102c5be7aec..a925c5bf270108a2fee3cf36d5e0bdded26cf035 100644
(file)
--- 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();
/**
@NonNull ErrorSeverity getSeverity();
/**
- * Returns the
value of the argument of YANG <code>error-app-tag</code> 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<String> getErrorAppTag();
/**
*/
Optional<String> getErrorAppTag();
/**
- * Returns the value of the argument of YANG
<code>error-message</code> 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.
*/
*
* @return string with the error message, or empty if it was not provided.
*/