Class LoomException

All Implemented Interfaces:
Serializable

public final class LoomException extends RuntimeException
Distributed cache client exception.

This is a client-side convenience exception that extends RuntimeException directly. Most client errors will throw common LoomCache exceptions (e.g., TimeoutException, ConnectionException) which are caught by catching LoomException.

Clients should catch the common base exception type to handle most error cases:

try {
    map.put("key", "value");
} catch (com.loomcache.common.exception.LoomException e) {
    // Catches all LoomCache errors including TimeoutException, ConnectionException, etc.
    log.error("Cache operation failed", e);
}

This exception is unchecked and primarily used for internal client operations.

Since:
1.0
See Also:
  • Constructor Details

    • LoomException

      public LoomException(@Nullable String message)
      Creates a new LoomException with the given message.
      Parameters:
      message - the error message (may be null)
    • LoomException

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

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