Class AFTIPCErrInfo.ErrorCode
java.lang.Object
org.newsclub.net.unix.NamedInteger
org.newsclub.net.unix.tipc.AFTIPCErrInfo.ErrorCode
- All Implemented Interfaces:
Serializable
- Enclosing class:
AFTIPCErrInfo
Some TIPC error code.
- Author:
- Christian Kohlschütter
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class NamedInteger
NamedInteger.HasOfValue, NamedInteger.UndefinedValueConstructor<T>Modifier and TypeClassDescriptionstatic interfaceMarks a subclass that provides a method"public static T ofValue(int v)"that allows casting an integer to this type via reflection.protected static interfaceConstructor for "undefined" values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AFTIPCErrInfo.ErrorCodeNormal connection shutdown occurred.static final AFTIPCErrInfo.ErrorCodeDestination port name is unknown.static final AFTIPCErrInfo.ErrorCodeDestination node is unreachable.static final AFTIPCErrInfo.ErrorCodeDestination port id does not exist.static final AFTIPCErrInfo.ErrorCodeDestination is congested.static final AFTIPCErrInfo.ErrorCodeNo error. -
Method Summary
Modifier and TypeMethodDescriptionstatic AFTIPCErrInfo.ErrorCodeofValue(int v) Returns anAFTIPCErrInfo.ErrorCodeinstance given an integer.Methods inherited from class NamedInteger
equals, hashCode, init, name, ofValue, toString, valueModifier and TypeMethodDescriptionfinal booleanfinal inthashCode()protected static final <T extends NamedInteger>
T[]init(T[] values) Ensures that theVALUESarray is configured correctly.final Stringname()Returns the name.protected static final <T extends NamedInteger>
TofValue(T[] values, NamedInteger.UndefinedValueConstructor<T> constr, int v) Returns an instance given an integer value.final StringtoString()final intvalue()Returns the value.
-
Field Details
-
TIPC_OK
No error. -
TIPC_ERR_NO_NAME
Destination port name is unknown. -
TIPC_ERR_NO_PORT
Destination port id does not exist. -
TIPC_ERR_NO_NODE
Destination node is unreachable. -
TIPC_ERR_OVERLOAD
Destination is congested. -
TIPC_ERR_CONN_SHUTDOWN
Normal connection shutdown occurred.
-
-
Method Details
-
ofValue
Returns anAFTIPCErrInfo.ErrorCodeinstance given an integer.- Parameters:
v- The value.- Returns:
- The instance.
-