Package com.yahoo.messagebus
Class ErrorCode
java.lang.Object
com.yahoo.messagebus.ErrorCode
This interface contains the reserved error codes that are used for errors that occur within the messagebus.
- Author:
- Simon Thoresen Hult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
An application specific non-recoverable error.static final int
An application specific transient error.static final int
A connection problem occurred while sending.static final int
An error occurred while decoding the message.static final int
An error occurred while encoding the message.static final int
No error codes are allowed to be this big.static final int
A general non-recoverable error, resending is not possible.static final int
Version handshake failed for any reason.static final int
The route of the message is illegal.static final int
The target is running an incompatible version.static final int
A fatal network error occurred while sending.static final int
The network was shut down when attempting to send.static final int
No addresses found for the services of the message route.static final int
No services found for the message route.static final int
The code is here for completeness.static final int
Exception thrown by routing policy.static final int
Sending aborted by route verification.static final int
Sending was rejected because throttler is closed.static final int
Sending was rejected because throttler capacity is full.static final int
An error occurred while sequencing a message.static final int
The recipient session is busy.static final int
A timeout occurred while sending.static final int
A general transient error, resending is possible.static final int
The policy specified in a route is unknown.static final int
The protocol specified for the message is unknown.static final int
The session specified for the message is unknown. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getName
(int error) Translates the given error code into its symbolic name.static boolean
isFatal
(int code) static boolean
isMBusError
(int code) static boolean
isTransient
(int code)
-
Field Details
-
NONE
public static final int NONEThe code is here for completeness.- See Also:
-
TRANSIENT_ERROR
public static final int TRANSIENT_ERRORA general transient error, resending is possible.- See Also:
-
SEND_QUEUE_FULL
public static final int SEND_QUEUE_FULLSending was rejected because throttler capacity is full.- See Also:
-
NO_ADDRESS_FOR_SERVICE
public static final int NO_ADDRESS_FOR_SERVICENo addresses found for the services of the message route.- See Also:
-
CONNECTION_ERROR
public static final int CONNECTION_ERRORA connection problem occurred while sending.- See Also:
-
UNKNOWN_SESSION
public static final int UNKNOWN_SESSIONThe session specified for the message is unknown.- See Also:
-
SESSION_BUSY
public static final int SESSION_BUSYThe recipient session is busy.- See Also:
-
SEND_ABORTED
public static final int SEND_ABORTEDSending aborted by route verification.- See Also:
-
HANDSHAKE_FAILED
public static final int HANDSHAKE_FAILEDVersion handshake failed for any reason.- See Also:
-
APP_TRANSIENT_ERROR
public static final int APP_TRANSIENT_ERRORAn application specific transient error.- See Also:
-
FATAL_ERROR
public static final int FATAL_ERRORA general non-recoverable error, resending is not possible.- See Also:
-
SEND_QUEUE_CLOSED
public static final int SEND_QUEUE_CLOSEDSending was rejected because throttler is closed.- See Also:
-
ILLEGAL_ROUTE
public static final int ILLEGAL_ROUTEThe route of the message is illegal.- See Also:
-
NO_SERVICES_FOR_ROUTE
public static final int NO_SERVICES_FOR_ROUTENo services found for the message route.- See Also:
-
ENCODE_ERROR
public static final int ENCODE_ERRORAn error occurred while encoding the message.- See Also:
-
NETWORK_ERROR
public static final int NETWORK_ERRORA fatal network error occurred while sending.- See Also:
-
UNKNOWN_PROTOCOL
public static final int UNKNOWN_PROTOCOLThe protocol specified for the message is unknown.- See Also:
-
DECODE_ERROR
public static final int DECODE_ERRORAn error occurred while decoding the message.- See Also:
-
TIMEOUT
public static final int TIMEOUTA timeout occurred while sending.- See Also:
-
INCOMPATIBLE_VERSION
public static final int INCOMPATIBLE_VERSIONThe target is running an incompatible version.- See Also:
-
UNKNOWN_POLICY
public static final int UNKNOWN_POLICYThe policy specified in a route is unknown.- See Also:
-
NETWORK_SHUTDOWN
public static final int NETWORK_SHUTDOWNThe network was shut down when attempting to send.- See Also:
-
POLICY_ERROR
public static final int POLICY_ERRORException thrown by routing policy.- See Also:
-
SEQUENCE_ERROR
public static final int SEQUENCE_ERRORAn error occurred while sequencing a message.- See Also:
-
APP_FATAL_ERROR
public static final int APP_FATAL_ERRORAn application specific non-recoverable error.- See Also:
-
ERROR_LIMIT
public static final int ERROR_LIMITNo error codes are allowed to be this big.- See Also:
-
-
Constructor Details
-
ErrorCode
public ErrorCode()
-
-
Method Details
-
getName
Translates the given error code into its symbolic name.- Parameters:
error
- The error code to translate.- Returns:
- The symbolic name.
-
isFatal
public static boolean isFatal(int code) -
isTransient
public static boolean isTransient(int code) -
isMBusError
public static boolean isMBusError(int code)
-