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
FieldsModifier and TypeFieldDescriptionstatic final intAn application specific non-recoverable error.static final intAn application specific transient error.static final intA connection problem occurred while sending.static final intAn error occurred while decoding the message.static final intAn error occurred while encoding the message.static final intNo error codes are allowed to be this big.static final intA general non-recoverable error, resending is not possible.static final intVersion handshake failed for any reason.static final intThe route of the message is illegal.static final intThe target is running an incompatible version.static final intA fatal network error occurred while sending.static final intThe network was shut down when attempting to send.static final intNo addresses found for the services of the message route.static final intNo services found for the message route.static final intThe code is here for completeness.static final intException thrown by routing policy.static final intSending aborted by route verification.static final intSending was rejected because throttler is closed.static final intSending was rejected because throttler capacity is full.static final intAn error occurred while sequencing a message.static final intThe recipient session is busy.static final intA timeout occurred while sending.static final intA general transient error, resending is possible.static final intThe policy specified in a route is unknown.static final intThe protocol specified for the message is unknown.static final intThe session specified for the message is unknown. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetName(int error) Translates the given error code into its symbolic name.static booleanisFatal(int code) static booleanisMBusError(int code) static booleanisTransient(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)
-