Class TimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.loomcache.common.exception.LoomException
com.loomcache.common.exception.TimeoutException
- All Implemented Interfaces:
Serializable
Thrown when an operation exceeds the configured timeout.
This exception indicates that an operation (such as a network request, lock acquisition, or replication) did not complete within the specified time limit.
Clients may choose to retry the operation, adjust the timeout value, or implement exponential backoff strategies.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeoutException(long timeoutMs, String operation) Creates a new TimeoutException with timeout duration and operation name.TimeoutException(String message) Creates a new TimeoutException with just a message.TimeoutException(String message, Throwable cause) Creates a new TimeoutException with 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
-
TimeoutException
Creates a new TimeoutException with timeout duration and operation name.- Parameters:
timeoutMs- the timeout duration in millisecondsoperation- the name of the operation that timed out
-
TimeoutException
Creates a new TimeoutException with just a message.- Parameters:
message- the error message
-
TimeoutException
-