Poco::Bugcheck Class Reference

#include <Bugcheck.h>


Detailed Description

This class provides some static methods that are used by the poco_assert_dbg(), poco_assert(), poco_check_ptr() and poco_bugcheck() macros. You should not invoke these methods directly. Use the macros instead, as they automatically provide useful context information.

Definition at line 86 of file Bugcheck.h.


Static Public Member Functions

static void assertion (const char *cond, const char *file, int line)
static void nullPointer (const char *ptr, const char *file, int line)
 An assertion failed. Break into the debugger, if possible, then throw an AssertionViolationException.
static void bugcheck (const char *file, int line)
 An null pointer was encountered. Break into the debugger, if possible, then throw an NullPointerException.
static void bugcheck (const char *msg, const char *file, int line)
 An internal error was encountered. Break into the debugger, if possible, then throw an BugcheckException.
static void debugger (const char *file, int line)
 An internal error was encountered. Break into the debugger, if possible, then throw an BugcheckException.
static void debugger (const char *msg, const char *file, int line)
 An internal error was encountered. Break into the debugger, if possible.

Static Protected Member Functions

static std::string what (const char *msg, const char *file, int line)
 An internal error was encountered. Break into the debugger, if possible.

Member Function Documentation

void Poco::Bugcheck::assertion ( const char *  cond,
const char *  file,
int  line 
) [static]

Definition at line 82 of file Bugcheck.cpp.

References Poco::Debugger::enter(), and what().

void Poco::Bugcheck::nullPointer ( const char *  ptr,
const char *  file,
int  line 
) [static]

An assertion failed. Break into the debugger, if possible, then throw an AssertionViolationException.

Definition at line 89 of file Bugcheck.cpp.

References Poco::Debugger::enter(), and what().

void Poco::Bugcheck::bugcheck ( const char *  file,
int  line 
) [static]

An null pointer was encountered. Break into the debugger, if possible, then throw an NullPointerException.

Definition at line 96 of file Bugcheck.cpp.

References Poco::Debugger::enter(), and what().

void Poco::Bugcheck::bugcheck ( const char *  msg,
const char *  file,
int  line 
) [static]

An internal error was encountered. Break into the debugger, if possible, then throw an BugcheckException.

Definition at line 103 of file Bugcheck.cpp.

References Poco::Debugger::enter(), and what().

void Poco::Bugcheck::debugger ( const char *  file,
int  line 
) [static]

An internal error was encountered. Break into the debugger, if possible, then throw an BugcheckException.

Definition at line 116 of file Bugcheck.cpp.

References Poco::Debugger::enter().

void Poco::Bugcheck::debugger ( const char *  msg,
const char *  file,
int  line 
) [static]

An internal error was encountered. Break into the debugger, if possible.

Definition at line 122 of file Bugcheck.cpp.

References Poco::Debugger::enter().

std::string Poco::Bugcheck::what ( const char *  msg,
const char *  file,
int  line 
) [static, protected]

An internal error was encountered. Break into the debugger, if possible.

Definition at line 128 of file Bugcheck.cpp.

Referenced by assertion(), bugcheck(), and nullPointer().


The documentation for this class was generated from the following files:

SourceForge.net Logo
Project space on SourceForge.net