#include <libthrowable/throwable_type.h>
Public Member Functions | |
ThrowableType () throw () | |
ThrowableType (const std::string &msg) throw () | |
ThrowableType (const char *filename, int linenumber) throw () | |
ThrowableType (const char *filename, int linenumber, const char *function) throw () | |
ThrowableType (const char *filename, int linenumber, const std::string &msg) throw () | |
ThrowableType (const char *filename, int linenumber, const char *function, const std::string &msg) throw () | |
ThrowableType (const std::exception &cause) throw () | |
ThrowableType (const std::exception &cause, const std::string &msg) throw () | |
ThrowableType (const char *filename, int linenumber, const std::exception &cause) throw () | |
ThrowableType (const char *filename, int linenumber, const char *function, const std::exception &cause) throw () | |
ThrowableType (const char *filename, int linenumber, const char *function, const std::exception &cause, const std::string &msg) throw () | |
virtual | ~ThrowableType () throw () |
Protected Member Functions | |
ThrowableType (const std::string &msg, const typename ThrowableT::DontManipulateStr &dummy) throw () |
ThrowableT | a type that has a constructor that is compatible with ThrowableT::ThrowableT(const std::string&, const ThrowableT::DontManipulateStr&). Most likely this will be a class like Throwable, Exception or Error. | |
TagT | a tag type with a static name() method, that returns a (const) string (reference). |
#include <libthrowable/error.h> using namespace libthrowable; struct MeltdownTag { static const std::string& name() { static const std::string ret("Meltdown"); return ret; } }; typedef ThrowableType<Error, MeltdownTag> Meltdown;
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | ) | throw () [inline] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const std::string & | msg | ) | throw () [inline, explicit] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const char * | filename, | |
int | linenumber | |||
) | throw () [inline] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const char * | filename, | |
int | linenumber, | |||
const char * | function | |||
) | throw () [inline] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const char * | filename, | |
int | linenumber, | |||
const std::string & | msg | |||
) | throw () [inline] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const char * | filename, | |
int | linenumber, | |||
const char * | function, | |||
const std::string & | msg | |||
) | throw () [inline] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const std::exception & | cause | ) | throw () [inline, explicit] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const std::exception & | cause, | |
const std::string & | msg | |||
) | throw () [inline] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const char * | filename, | |
int | linenumber, | |||
const std::exception & | cause | |||
) | throw () [inline] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const char * | filename, | |
int | linenumber, | |||
const char * | function, | |||
const std::exception & | cause | |||
) | throw () [inline] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const char * | filename, | |
int | linenumber, | |||
const char * | function, | |||
const std::exception & | cause, | |||
const std::string & | msg | |||
) | throw () [inline] |
virtual libthrowable::ThrowableType< ThrowableT, TagT >::~ThrowableType | ( | ) | throw () [inline, virtual] |
libthrowable::ThrowableType< ThrowableT, TagT >::ThrowableType | ( | const std::string & | msg, | |
const typename ThrowableT::DontManipulateStr & | dummy | |||
) | throw () [inline, protected] |