Library: Redis
Package: Redis
Header: Poco/Redis/Exception.h
This class mainly inherits the direct base classes from Poco::Exception itself.
Constructor and Destructor:-
Syntax of constructor -
Following are the few syntax for constructor, depending upon the different situation you can use any of them.
int code = 0
);
Or
const RedisException & exc
);
Or
const std::string & msg,
int code = 0
);
Or
const std::string & msg,
const std::string & arg,
int code = 0
);
Or
const std::string & msg,
const Poco::Exception & exc,
int code = 0
);
Syntax of destructor -
~RedisException() noexcept;
Member Function(s) :-
Class Name -
const char * className() const noexcept;
It is similar to the className() function of Poco::Exception i.e. it returns the name of exception class
Clone -
Poco::Exception * clone() const;
It is similar to the clone() function of Poco::Exception. It clones the exception by creating an exact copy of the exception. This created copy can be called again by calling reThrow function using following syntax.
void rethrow() const;
Name -
const char * name() const noexcept
This function upon calling returns the name of the exception as a static string.
Operator= -
RedisException & operator = (
const RedisException & exc
);
" = " is an assignment operator which works similarly in almost every programming language.
For inherited function click here
Reference - https://pocoproject.org/docs/Poco.Redis.RedisException.html
Comments