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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>
getErrorAppTag()
Returns the value of the argument of YANGerror-app-tag
keyword.Optional<String>
getErrorMessage()
Returns the value of the argument of YANGerror-message
keyword.@NonNull RpcError.ErrorType
getErrorType()
Returns the conceptual layer at which the error occurred.@NonNull RpcError.ErrorSeverity
getSeverity()
Returns the error severity, as determined by the application reporting the error.
-
-
-
Method Detail
-
getErrorType
@NonNull RpcError.ErrorType getErrorType()
Returns the conceptual layer at which the error occurred.- Returns:
- an
RpcError.ErrorType
enum.
-
getSeverity
@NonNull RpcError.ErrorSeverity getSeverity()
Returns the error severity, as determined by the application reporting the error.- Returns:
- an
RpcError.ErrorSeverity
enum.
-
getErrorAppTag
Optional<String> getErrorAppTag()
Returns the value of the argument of YANGerror-app-tag
keyword.- Returns:
- string with the application tag, or empty if it was not provided.
-
-