Class LoomException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.loomcache.common.exception.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
public sealed class LoomException
extends RuntimeException
permits AuthenticationException, BackingStoreWriteException, BackpressureException, CapacityExceededException, ConnectionException, ConsistencyLostException, GracefulShutdownException, InterceptorExecutionException, InvalidConfigurationException, LeaderChangedException, LockOwnershipLostException, LockTimeoutException, NotLeaderException, QuorumUnavailableException, SerializationException, StaleReadException, UnknownOperationOutcomeException, TimeoutException
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 Summary
ConstructorsConstructorDescriptionLoomException(@Nullable Throwable cause) Creates a new LoomException with the given cause.LoomException(String message) Creates a new LoomException with the given message.LoomException(String message, @Nullable Throwable cause) Creates a new LoomException with the given message and 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
-
LoomException
-
LoomException
Creates a new LoomException with the given cause.- Parameters:
cause- the underlying cause
-