exception.hpp File Reference

Defines struct FileLine and macro _FLINE_ and functions toTextAll(), recatchException() and exception classes Exception , MsgException , ExitMsgException , ExternException , StdExternException , UnknExternException . More...

#include <ders/config.hpp>
#include <ders/text.hpp>

Go to the source code of this file.

Namespaces

namespace  ders

Classes

struct  ders::FileLine
 Encapsulates file name and line number information. More...
class  ders::Exception
 Base exception class with embed location, message and nested exception. More...
class  ders::MsgException
 Abstract exception class for message exceptions that must pass exception handlers untouched. More...
class  ders::ExitMsgException
 MsgException class with embed exitCode used to exit application with. More...
class  ders::ExternException
 Abstract exception class for external exceptions with embed typeName. More...
class  ders::StdExternException
 ExternException class for std::exception. More...
class  ders::UnknExternException
 ExternException class for unknown exception. More...

Defines

#define _FLINE_   ders::FileLine(__FILE__, __LINE__)
 Helper macro for automatic FileLine object creation.

Typedefs

typedef sh_ptr< Exception > ders::shException

Functions

sh_text ders::toTextAll (const shException &she)
 Returns concatenated error message of all nested exceptions.
shException ders::recatchException (mem_pool &mp, const FileLine &location)
 Converts current exception to shException object.
shException ders::newException (mem_pool &mp, const FileLine &loc, const ch_rng &msg)
shException ders::newException (const FileLine &loc, const ch_rng &msg, shException nest)
shException ders::newExitMsgException (mem_pool &mp, const FileLine &loc, const ch_rng &msg, int ecode)
shException ders::newExitMsgException (const FileLine &loc, const ch_rng &msg, int ecode, shException nest)
shException ders::newStdExternException (mem_pool &mp, const FileLine &loc, const ch_rng &msg, const ch_rng &tname)
shException ders::newStdExternException (const FileLine &loc, const ch_rng &msg, const ch_rng &tname, shException nest)
shException ders::newUnknExternException (mem_pool &mp, const FileLine &loc, const ch_rng &msg)
shException ders::newUnknExternException (const FileLine &loc, const ch_rng &msg, shException nest)


Detailed Description

Defines struct FileLine and macro _FLINE_ and functions toTextAll(), recatchException() and exception classes Exception , MsgException , ExitMsgException , ExternException , StdExternException , UnknExternException .

Definition in file exception.hpp.


Define Documentation

#define _FLINE_   ders::FileLine(__FILE__, __LINE__)

Helper macro for automatic FileLine object creation.

Definition at line 31 of file exception.hpp.


Generated on Tue Dec 8 11:35:32 2009 for derslib by  doxygen 1.5.5