Class LoomException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.loomcache.client.LoomException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionLoomException(@Nullable String message) Creates a new LoomException with the given message.LoomException(@Nullable String message, @Nullable Throwable cause) Creates a new LoomException with the given message and cause.LoomException(@Nullable Throwable cause) Creates a new LoomException with the given cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LoomException
Creates a new LoomException with the given message.- Parameters:
message- the error message (may be null)
-
LoomException
-
LoomException
Creates a new LoomException with the given cause.- Parameters:
cause- the underlying cause (may be null)
-