# Poco::Redis

# class RedisErrorNotification

Library: Redis
Package: Redis
Header: Poco/Redis/RedisNotifications.h

## Description

Notification sent when a Redis error occurs.

## Inheritance

Direct Base Classes: RedisNotification

All Base Classes: Poco::Notification, RedisNotification, Poco::RefCountedObject

## Member Summary

Member Functions: error, message

Inherited Functions: duplicate, name, referenceCount, release

## Constructors

### RedisErrorNotification

RedisErrorNotification(
const Exception & error
);

Creates the RedisErrorNotification with the given error.

### RedisErrorNotification

RedisErrorNotification(
const std::string & message
);

Creates the RedisErrorNotification with the given error message.

## Destructor

### ~RedisErrorNotification

virtual ~RedisErrorNotification();

Destroys the RedisErrorNotification.

## Member Functions

### error

const Exception & error() const;

Returns the error that caused this notification.

### message

const std::string & message() const;

Returns the error message.