Enum Class ErrorType
- All Implemented Interfaces:
Serializable,Comparable<ErrorType>,Constable
Enumeration of
error-type values. These provide glue between NetconfLayer and various sources of
such errors. This enumeration is not extensible in YANG as it is modeled in
RFC8040.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionANetconfLayer.CONTENTlayer error.ANetconfLayer.OPERATIONSlayer error.ANetconfLayer.RPClayer error.ANetconfLayer.TRANSPORTlayer error. -
Method Summary
Modifier and TypeMethodDescriptionReturn the XML element body of this object.static @Nullable ErrorTypeforElementBody(String elementBody) final NetconfLayerlayer()Return theNetconfLayercorresponding to this error type.static ErrorTypeReturns the enum constant of this class with the specified name.static ErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRANSPORT
ANetconfLayer.TRANSPORTlayer error. This typically happens on transport endpoints, where a protocol plugin needs to report a NETCONF-equivalent condition. -
RPC
ANetconfLayer.RPClayer error. This typically happens on request routers, where a request may end up being resolved due to implementation-internal causes, such as timeouts and state loss. -
PROTOCOL
ANetconfLayer.OPERATIONSlayer error. These typically happen in a NETCONF protocol implementation. -
APPLICATION
ANetconfLayer.CONTENTlayer error. These typically happen due to YANG data handling, such as type checking and structural consistency.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
elementBody
Return the XML element body of this object.- Returns:
- element body of this object
-
layer
Return theNetconfLayercorresponding to this error type.- Returns:
- A NETCONF layer
-
forElementBody
-