10#ifndef UTIL_EXCEPTION_HEADER
11#define UTIL_EXCEPTION_HEADER
23class Exception :
public std::exception,
public std::string
29 Exception (std::string
const& msg)
throw() : std::string(msg)
32 Exception (std::string
const& msg,
char const* msg2)
throw()
34 { this->append(msg2); }
36 Exception (std::string
const& msg, std::string
const& msg2)
throw()
38 { this->append(msg2); }
43 virtual const char*
what (
void)
const throw()
44 {
return this->c_str(); }
55 FileException(std::string
const& filename, std::string
const& msg)
throw()
Universal, simple exception class.
virtual const char * what(void) const
Exception(std::string const &msg, char const *msg2)
Exception(std::string const &msg)
Exception(std::string const &msg, std::string const &msg2)
Exception class for file exceptions with additional filename.
virtual ~FileException(void)
FileException(std::string const &filename, std::string const &msg)
FileException(std::string const &filename, char const *msg)
#define UTIL_NAMESPACE_BEGIN
#define UTIL_NAMESPACE_END