Class RedisOperationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ohalee.database.redis.exceptions.RedisOperationException
All Implemented Interfaces:
Serializable

public class RedisOperationException extends RuntimeException
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 Details

    • RedisOperationException

      public RedisOperationException(String message, Throwable cause)
      Constructs a new RedisOperationException with the specified detail message and cause.
      Parameters:
      message - The detail message (saved for later retrieval by the Throwable.getMessage() method).
      cause - The cause (saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)