Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::Bugcheck Class Reference

#include <Bugcheck.h>

Static Public Member Functions

static void assertion (const char *cond, const char *file, int line, const char *text=0)
 
static void nullPointer (const char *ptr, const char *file, int line)
 
static void bugcheck (const char *file, int line)
 
static void bugcheck (const char *msg, const char *file, int line)
 
static void unexpected (const char *file, int line)
 
static void debugger (const char *file, int line)
 
static void debugger (const char *msg, const char *file, int line)
 

Static Protected Member Functions

static std::string what (const char *msg, const char *file, int line, const char *text=0)
 

Detailed Description

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

Definition at line 32 of file Bugcheck.h.

Member Function Documentation

◆ assertion()

static void Poco::Bugcheck::assertion ( const char * cond,
const char * file,
int line,
const char * text = 0 )
static

◆ bugcheck() [1/2]

static 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.

◆ bugcheck() [2/2]

static 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.

◆ debugger() [1/2]

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

An exception was caught in a destructor. Break into debugger, if possible and report exception. Must only be called from within a catch () block as it rethrows the exception to determine its class.

◆ debugger() [2/2]

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

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

◆ nullPointer()

static 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.

◆ unexpected()

static void Poco::Bugcheck::unexpected ( const char * file,
int line )
static

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

◆ what()

static std::string Poco::Bugcheck::what ( const char * msg,
const char * file,
int line,
const char * text = 0 )
staticprotected

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


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