Enum Class MiddlewareErrorCode

java.lang.Object
java.lang.Enum<MiddlewareErrorCode>
org.j7m.middleware.api.MiddlewareErrorCode
All Implemented Interfaces:
Serializable, Comparable<MiddlewareErrorCode>, Constable

public enum MiddlewareErrorCode extends Enum<MiddlewareErrorCode>
Stable error codes returned by the middleware public API.

The enum is immutable and thread-safe. Codes are transport-neutral and are used to wrap registry, codec, reflection, RMI, gRPC, and runtime failures before they cross a public API boundary.

  • Enum Constant Details

    • NOT_FOUND

      public static final MiddlewareErrorCode NOT_FOUND
      Requested object, service, method, or registry record was not found.
    • UNAVAILABLE

      public static final MiddlewareErrorCode UNAVAILABLE
      Target or subsystem is temporarily unavailable.
    • DEADLINE_EXCEEDED

      public static final MiddlewareErrorCode DEADLINE_EXCEEDED
      Operation exceeded its caller-supplied or default deadline.
    • CANCELLED

      public static final MiddlewareErrorCode CANCELLED
      Operation was cancelled before completion.
    • OVERLOADED

      public static final MiddlewareErrorCode OVERLOADED
      Runtime refused work because a configured limit was exceeded.
    • PERMISSION_DENIED

      public static final MiddlewareErrorCode PERMISSION_DENIED
      Caller is authenticated but lacks permission.
    • UNAUTHENTICATED

      public static final MiddlewareErrorCode UNAUTHENTICATED
      Caller is not authenticated.
    • INVALID_ARGUMENT

      public static final MiddlewareErrorCode INVALID_ARGUMENT
      Caller supplied invalid arguments or incompatible options.
    • METHOD_NOT_FOUND

      public static final MiddlewareErrorCode METHOD_NOT_FOUND
      Requested method is not exposed by the target object.
    • INTERFACE_MISMATCH

      public static final MiddlewareErrorCode INTERFACE_MISMATCH
      Requested Java interface is not exposed or has an incompatible signature.
    • CODEC_ERROR

      public static final MiddlewareErrorCode CODEC_ERROR
      Codec failed to encode or decode a value.
    • REMOTE_EXCEPTION

      public static final MiddlewareErrorCode REMOTE_EXCEPTION
      Remote application method threw an exception.
    • LEASE_EXPIRED

      public static final MiddlewareErrorCode LEASE_EXPIRED
      Reference or registry record lease has expired.
    • DUPLICATE_OPERATION

      public static final MiddlewareErrorCode DUPLICATE_OPERATION
      Duplicate operation rejected by reliability semantics.
    • STALE_FENCING_TOKEN

      public static final MiddlewareErrorCode STALE_FENCING_TOKEN
      Fencing token is stale.
    • REGISTRY_UNAVAILABLE

      public static final MiddlewareErrorCode REGISTRY_UNAVAILABLE
      Registry could not satisfy the operation.
    • TRANSPORT_ERROR

      public static final MiddlewareErrorCode TRANSPORT_ERROR
      Transport failed before or during invocation.
    • LOG_CORRUPTION

      public static final MiddlewareErrorCode LOG_CORRUPTION
      Durable log detected record or segment corruption.
    • DURABLE_LOG_ERROR

      public static final MiddlewareErrorCode DURABLE_LOG_ERROR
      Durable log I/O, sync, or format operation failed.
    • RECOVERY_FAILED

      public static final MiddlewareErrorCode RECOVERY_FAILED
      Durable log recovery failed.
    • INTERNAL

      public static final MiddlewareErrorCode INTERNAL
      Unexpected middleware implementation failure.
  • Method Details

    • values

      public static MiddlewareErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MiddlewareErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null