Class ErrorReason
 An application can check whether an ErrorReason is equal to some expected
 value using Object.equals(Object). Equality is derived from the
 reasonCode, with instances with equal codes
 considered equal.
 
 Some common ErrorReason values are defined as constants in this class. More
 specific reasons may be defined by individual
 features.
- Since:
- 5.1
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ErrorReasonThe request was rejected because the caller has insufficient permissions.static final ErrorReasonAn application callback threw an exception.static final ErrorReasonA cluster operation failed because partition ownership changed during processing.static final ErrorReasonA cluster operation failed to be routed to a server within the cluster due to a communication failure, or the server that owns a partition is not currently known.static final ErrorReasonCommunication with the server failed.static final ErrorReasonA conflicting registration exists.static final ErrorReasonA datatype operation has failed due to incompatibility.static final ErrorReasonA topic update could not be performed because the topic is managed by a component (for example, fan-out) which prohibits external updates.static final ErrorReasonAn operation failed because invalid data was received.static final ErrorReasonAn invalid path was supplied.static final ErrorReasonThe session does not exist on the server.static final ErrorReasonCommunication with the server failed because a service request timed out.static final ErrorReasonCommunication with the server failed because the session is closed.static final ErrorReasonA conflicting registration exists on the same branch of the topic tree.static final ErrorReasonA message was not handled by the server.static final ErrorReasonThe request was rejected because the requested service is unsupported for this caller.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
COMMUNICATION_FAILURECommunication with the server failed.
- 
SESSION_CLOSEDCommunication with the server failed because the session is closed.
- 
REQUEST_TIME_OUTCommunication with the server failed because a service request timed out.
- 
ACCESS_DENIEDThe request was rejected because the caller has insufficient permissions.
- 
UNSUPPORTEDThe request was rejected because the requested service is unsupported for this caller.- Since:
- 5.9
 
- 
CALLBACK_EXCEPTIONAn application callback threw an exception. Check logs for more information.- Since:
- 5.9
 
- 
INVALID_DATAAn operation failed because invalid data was received.- Since:
- 6.0
 
- 
NO_SUCH_SESSIONThe session does not exist on the server.- Since:
- 6.0
 
- 
INCOMPATIBLE_DATATYPEA datatype operation has failed due to incompatibility.- Since:
- 6.0
 
- 
UNHANDLED_MESSAGEA message was not handled by the server.- Since:
- 6.0
 
- 
CLUSTER_REPARTITIONA cluster operation failed because partition ownership changed during processing.This is a transient error that occurs while the cluster is recovering from failure. The session can retry the operation. - Since:
- 6.0
- See Also:
 
- 
INCOMPATIBLE_STATEA topic update could not be performed because the topic is managed by a component (for example, fan-out) which prohibits external updates.- Since:
- 6.0
 
- 
CLUSTER_ROUTINGA cluster operation failed to be routed to a server within the cluster due to a communication failure, or the server that owns a partition is not currently known.This is a transient error that occurs while the cluster is recovering from failure. The session can retry the operation. - Since:
- 6.5
- See Also:
 
- 
TOPIC_TREE_REGISTRATION_CONFLICTA conflicting registration exists on the same branch of the topic tree.
- 
HANDLER_CONFLICTA conflicting registration exists.
- 
INVALID_PATHAn invalid path was supplied.
 
- 
- 
Constructor Details- 
ErrorReasonConstructor.Application code should prefer pre-defined constants such as COMMUNICATION_FAILURE, rather than calling this.- Parameters:
- reasonCode- a unique code
- description- a description of the reason, may be context-specific
 
 
- 
- 
Method Details- 
getReasonCodepublic int getReasonCode()A code that uniquely identifies this reason.Applications should rarely need to call this method and prefer equals(Object)to compare instances for equality.Reasons defined by DiffusionData have reason codes in the range 0 to 65535 inclusive. - Returns:
- the code
 
- 
getDescriptionDescription of the error reason, may be context-specific.- Returns:
- the description
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-