Class RedisOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ohalee.database.redis.exceptions.RedisOperationException
- All Implemented Interfaces:
Serializable
A generic runtime exception representing a failure during a Redis operation.
This exception serves as a wrapper for lower-level errors, such as:
- Driver-specific errors (e.g.,
RedisException) - Connection failures
- Transaction execution errors
- Unexpected interruptions during command processing
Because it extends RuntimeException, it does not need to be declared in
method signatures, but it should be caught by top-level logic handling database interactions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRedisOperationException(String message, Throwable cause) Constructs a newRedisOperationExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RedisOperationException
Constructs a newRedisOperationExceptionwith the specified detail message and cause.- Parameters:
message- The detail message (saved for later retrieval by theThrowable.getMessage()method).cause- The cause (saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-