#include <exception.hpp>
Public Member Functions | |
virtual sh_text | getClassName () const |
virtual void | destroy (mem_pool &mp2) |
virtual sh_text | toText () const |
template<class E> | |
E * | is () |
template<class E> | |
const E * | is () const |
Public Attributes | |
const sh_text | typeName |
const FileLine | location |
const sh_text | message |
const shException | nested |
Protected Member Functions | |
StdExternException (const FileLine &loc, const ch_rng &msg, const ch_rng &tname, shException nest) | |
void | operator delete (void *ptr, size_t size) |
Static Protected Member Functions | |
template<class T> | |
static void | destroy_this (T *ptr, mem_pool &mp2) |
Friends | |
shException | newStdExternException (const FileLine &loc, const ch_rng &msg, const ch_rng &tname, shException nest) |
Definition at line 158 of file exception.hpp.
ders::StdExternException::StdExternException | ( | const FileLine & | loc, | |
const ch_rng & | msg, | |||
const ch_rng & | tname, | |||
shException | nest | |||
) | [protected] |
Definition at line 134 of file exception.cpp.
00135 : 00136 ExternException(loc, msg, tname, nest) 00137 { 00138 }
sh_text ders::StdExternException::getClassName | ( | ) | const [virtual] |
virtual void ders::StdExternException::destroy | ( | mem_pool & | mp2 | ) | [inline, virtual] |
Reimplemented from ders::Exception.
Definition at line 172 of file exception.hpp.
00172 { destroy_this(this, mp2); }
sh_text ders::ExternException::toText | ( | ) | const [virtual, inherited] |
Reimplemented from ders::Exception.
Definition at line 128 of file exception.cpp.
00129 { 00130 return text_buf(getClassName())+" ["+location.file+":"+location.line+ 00131 "], typeName=\""+typeName+"\", message: "+message; 00132 }
E * ders::Exception::is | ( | ) | [inline, inherited] |
const E * ders::Exception::is | ( | ) | const [inline, inherited] |
void ders::destroyable::destroy_this | ( | T * | ptr, | |
mem_pool & | mp2 | |||
) | [inline, static, protected, inherited] |
Definition at line 47 of file destroy.hpp.
00048 { 00049 assert(typeid(*ptr)==typeid(T)); 00050 00051 ptr->~T(); 00052 mp2.deallocate(ptr, sizeof(T)); 00053 }
void ders::destroyable::operator delete | ( | void * | ptr, | |
size_t | size | |||
) | [inline, protected, inherited] |
shException newStdExternException | ( | const FileLine & | loc, | |
const ch_rng & | msg, | |||
const ch_rng & | tname, | |||
shException | nest | |||
) | [friend] |
const sh_text ders::ExternException::typeName [inherited] |
Definition at line 149 of file exception.hpp.
const FileLine ders::Exception::location [inherited] |
Definition at line 77 of file exception.hpp.
const sh_text ders::Exception::message [inherited] |
Definition at line 78 of file exception.hpp.
const shException ders::Exception::nested [inherited] |
Definition at line 79 of file exception.hpp.