23 #include <libebt/libebt.hh> 24 #include <libebt/libebt_util.hh> 26 struct ExceptionTag { };
27 typedef libebt::BacktraceContext<ExceptionTag, std::string>
Context;
36 public std::exception {
38 const std::string _message;
39 const int _error_number;
42 Exception(
const std::string & message,
const int error_number)
throw () :
43 libebt::Backtraceable<ExceptionTag>(),
45 _message(message), _error_number(error_number) {
51 std::string message()
const throw() {
54 const char* what()
const throw() {
55 return _message.c_str();
58 const int error_number()
const throw() {
85 Exception(
const std::string & message,
const int error_number)
throw () :
87 _message(message), _error_number(error_number) {
96 const char*
what()
const throw() {
97 return _message.c_str();
101 return _error_number;
const std::string _message
std::string message() const
Exception(const std::string &message, const int error_number)
const char * what() const