Programmer Reference : Redis : EsRedisException
EsRedisException
Description
This is the abstract superclass for all exceptions raised by the EsRedisApp framework. It serves as a general-purpose exception that can be signaled for both client-side issues and for error replies received from the Redis server.
Catching EsRedisException provides a way to handle any error originating from the Redis client. For more granular error handling, catch one of its specific subclasses.
Public API and Key Responsibilities
  • Acts as the root exception, allowing handlers to catch all Redis-related errors.
  • Wraps error messages returned from the Redis server (e.g., WRONGTYPE, NOAUTH).
Usage Example
[
client hashes hget: 'a-string-key' field: 'f1'
]
on: EsRedisException
do: [:ex | Transcript show: 'Caught Redis error: ' , ex description].
Class Methods
None
Instance Methods
None
Last modified date: 01/22/2026