1 #ifndef __SDR_EXCEPTION_HH__
2 #define __SDR_EXCEPTION_HH__
10 class SDRError :
public std::exception,
public std::stringstream {
16 :
std::exception(),
std::stringstream() { this->str(other.str()); }
20 virtual const char *
what()
const throw() {
return this->str().c_str(); }
49 #endif // __SDR_EXCEPTION_HH__
virtual ~ConfigError()
Destructor.
Definition: exception.hh:31
virtual const char * what() const
Implements the std::exception interface.
Definition: exception.hh:20
ConfigError(const ConfigError &other)
Copy constructor.
Definition: exception.hh:29
Definition: autocast.hh:8
Definition: operators.hh:9
Base class of all SDR exceptions.
Definition: exception.hh:10
The runtime error class.
Definition: exception.hh:36
virtual ~RuntimeError()
Destructor.
Definition: exception.hh:43
SDRError(const SDRError &other)
Copy constructor.
Definition: exception.hh:15
RuntimeError()
Constructor.
Definition: exception.hh:39
RuntimeError(const RuntimeError &other)
Copy constructor.
Definition: exception.hh:41
The configuration error class.
Definition: exception.hh:24
ConfigError()
Constructor.
Definition: exception.hh:27
virtual ~SDRError()
Destructor.
Definition: exception.hh:18
SDRError()
Constructor.
Definition: exception.hh:13