Class ErrorCode

java.lang.Object
com.yahoo.messagebus.ErrorCode

public final class ErrorCode extends Object
This interface contains the reserved error codes that are used for errors that occur within the messagebus.
Author:
Simon Thoresen Hult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    An application specific non-recoverable error.
    static final int
    An application specific transient error.
    static final int
    A connection problem occured while sending.
    static final int
    An error occurred while decoding the message.
    static final int
    An error occured 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 occured 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 occured 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NONE

      public static final int NONE
      The code is here for completeness.
      See Also:
    • TRANSIENT_ERROR

      public static final int TRANSIENT_ERROR
      A general transient error, resending is possible.
      See Also:
    • SEND_QUEUE_FULL

      public static final int SEND_QUEUE_FULL
      Sending was rejected because throttler capacity is full.
      See Also:
    • NO_ADDRESS_FOR_SERVICE

      public static final int NO_ADDRESS_FOR_SERVICE
      No addresses found for the services of the message route.
      See Also:
    • CONNECTION_ERROR

      public static final int CONNECTION_ERROR
      A connection problem occured while sending.
      See Also:
    • UNKNOWN_SESSION

      public static final int UNKNOWN_SESSION
      The session specified for the message is unknown.
      See Also:
    • SESSION_BUSY

      public static final int SESSION_BUSY
      The recipient session is busy.
      See Also:
    • SEND_ABORTED

      public static final int SEND_ABORTED
      Sending aborted by route verification.
      See Also:
    • HANDSHAKE_FAILED

      public static final int HANDSHAKE_FAILED
      Version handshake failed for any reason.
      See Also:
    • APP_TRANSIENT_ERROR

      public static final int APP_TRANSIENT_ERROR
      An application specific transient error.
      See Also:
    • FATAL_ERROR

      public static final int FATAL_ERROR
      A general non-recoverable error, resending is not possible.
      See Also:
    • SEND_QUEUE_CLOSED

      public static final int SEND_QUEUE_CLOSED
      Sending was rejected because throttler is closed.
      See Also:
    • ILLEGAL_ROUTE

      public static final int ILLEGAL_ROUTE
      The route of the message is illegal.
      See Also:
    • NO_SERVICES_FOR_ROUTE

      public static final int NO_SERVICES_FOR_ROUTE
      No services found for the message route.
      See Also:
    • ENCODE_ERROR

      public static final int ENCODE_ERROR
      An error occured while encoding the message.
      See Also:
    • NETWORK_ERROR

      public static final int NETWORK_ERROR
      A fatal network error occured while sending.
      See Also:
    • UNKNOWN_PROTOCOL

      public static final int UNKNOWN_PROTOCOL
      The protocol specified for the message is unknown.
      See Also:
    • DECODE_ERROR

      public static final int DECODE_ERROR
      An error occurred while decoding the message.
      See Also:
    • TIMEOUT

      public static final int TIMEOUT
      A timeout occurred while sending.
      See Also:
    • INCOMPATIBLE_VERSION

      public static final int INCOMPATIBLE_VERSION
      The target is running an incompatible version.
      See Also:
    • UNKNOWN_POLICY

      public static final int UNKNOWN_POLICY
      The policy specified in a route is unknown.
      See Also:
    • NETWORK_SHUTDOWN

      public static final int NETWORK_SHUTDOWN
      The network was shut down when attempting to send.
      See Also:
    • POLICY_ERROR

      public static final int POLICY_ERROR
      Exception thrown by routing policy.
      See Also:
    • SEQUENCE_ERROR

      public static final int SEQUENCE_ERROR
      An error occured while sequencing a message.
      See Also:
    • APP_FATAL_ERROR

      public static final int APP_FATAL_ERROR
      An application specific non-recoverable error.
      See Also:
    • ERROR_LIMIT

      public static final int ERROR_LIMIT
      No error codes are allowed to be this big.
      See Also:
  • Constructor Details

    • ErrorCode

      public ErrorCode()
  • Method Details

    • getName

      public static String getName(int error)
      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)