Class LoomException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthenticationException, BackingStoreWriteException, BackpressureException, CapacityExceededException, ConnectionException, ConsistencyLostException, GracefulShutdownException, InterceptorExecutionException, InvalidConfigurationException, LeaderChangedException, LockOwnershipLostException, LockTimeoutException, NotLeaderException, QuorumUnavailableException, SerializationException, StaleReadException, TimeoutException, UnknownOperationOutcomeException

Base exception for all LoomCache errors.

This is an unchecked exception (extends RuntimeException) since most LoomCache errors are unrecoverable at the call site and should propagate up the stack. Specific LoomCache operations may be retried at a higher level.

All other LoomCache-specific exceptions extend this base class.

This is a sealed class that enables exhaustive pattern matching in catch blocks. All permitted subclasses are final to ensure the sealed hierarchy is enforced.

Since:
1.0
See Also:
  • Constructor Details

    • LoomException

      public LoomException(String message)
      Creates a new LoomException with the given message.
      Parameters:
      message - the error message
    • LoomException

      public LoomException(String message, @Nullable Throwable cause)
      Creates a new LoomException with the given message and cause.
      Parameters:
      message - the error message
      cause - the underlying cause
    • LoomException

      public LoomException(@Nullable Throwable cause)
      Creates a new LoomException with the given cause.
      Parameters:
      cause - the underlying cause