|
RDK Documentation (Open Sourced RDK Components)
|
31 #ifndef _DS_MGR_EXCEPTION_H_
32 #define _DS_MGR_EXCEPTION_H_
33 #ifndef _DS_EXCEPTION_H_
34 #define _DS_EXCEPTION_H_
47 Exception(
const char *msg =
"No Message for this exception") throw() :
_msg(msg) {
50 Exception(
int err,
const char *msg =
"No Message for this Exception") throw()
53 virtual const std::string &
getMessage()
const {
59 virtual const char *
what()
const throw() {
virtual const char * what() const
This function is overwritten to get the null terminated character sequence of the exception message.
virtual ~Exception()
This function is the default destructor of Exception class.
Exception(const char *msg="No Message for this exception")
This function is a parameterised constructor of the class Exception. It initializes the instance with...
virtual int getCode() const
This function is used to get the error code of the exception.
int _err
Indicates error code for the exception.
virtual const std::string & getMessage() const
This function is used to get the message string of the exception.
std::string _msg
Indicates the error message.