Arduino-Redis
A Redis library for Arduino.
Public Types | Public Member Functions | Protected Attributes | List of all members
RedisInternalError Class Reference

Detailed Description

An internal API error. Call RESP() to get the error string.

Definition at line 130 of file RedisInternal.h.

Public Types

enum  RedisInternalErrorCode { UnknownError = -254, UnknownType, Disconnected, NoError = 0 }
 
- Public Types inherited from RedisObject
enum  Type {
  NoType = '\0', SimpleString = '+', Error = '-', Integer = ':',
  BulkString = '$', Array = '*', InternalError = '!'
}
 

Public Member Functions

 RedisInternalError (RedisInternalErrorCode c)
 
 RedisInternalError (RedisInternalErrorCode c, String es)
 
 ~RedisInternalError () override
 
RedisInternalErrorCode code ()
 
void setErrorString (String es)
 
virtual String RESP () override
 
- Public Member Functions inherited from RedisObject
 RedisObject ()
 
 RedisObject (Type tc)
 
 RedisObject (Type tc, Client &c)
 
virtual ~RedisObject ()
 
virtual void init (Client &client)
 
virtual operator String ()
 
Type type () const
 

Protected Attributes

RedisInternalErrorCode _code
 
- Protected Attributes inherited from RedisObject
String data
 
Type _type = Type::NoType
 

Additional Inherited Members

- Static Public Member Functions inherited from RedisObject
static std::shared_ptr< RedisObjectparseTypeNonBlocking (Client &)
 
static std::shared_ptr< RedisObjectparseType (Client &)
 

#include <RedisInternal.h>

Inheritance diagram for RedisInternalError:
Inheritance graph
[legend]

Member Enumeration Documentation

◆ RedisInternalErrorCode

Enumerator
UnknownError 
UnknownType 
Disconnected 
NoError 

Definition at line 133 of file RedisInternal.h.

Constructor & Destructor Documentation

◆ RedisInternalError() [1/2]

RedisInternalError::RedisInternalError ( RedisInternalErrorCode  c)
inline

Definition at line 141 of file RedisInternal.h.

◆ RedisInternalError() [2/2]

RedisInternalError::RedisInternalError ( RedisInternalErrorCode  c,
String  es 
)
inline

Definition at line 142 of file RedisInternal.h.

◆ ~RedisInternalError()

RedisInternalError::~RedisInternalError ( )
inlineoverride

Definition at line 143 of file RedisInternal.h.

Member Function Documentation

◆ code()

RedisInternalErrorCode RedisInternalError::code ( )
inline

Definition at line 145 of file RedisInternal.h.

◆ RESP()

virtual String RedisInternalError::RESP ( )
inlineoverridevirtual

Produce the Redis serialization protocol (RESP) representation. Must be overridden.

Implements RedisObject.

Definition at line 148 of file RedisInternal.h.

◆ setErrorString()

void RedisInternalError::setErrorString ( String  es)
inline

Definition at line 146 of file RedisInternal.h.

Member Data Documentation

◆ _code

RedisInternalErrorCode RedisInternalError::_code
protected

Definition at line 151 of file RedisInternal.h.