MWidgets::Exception Class Reference

Exception class. More...

#include <exception.h>

List of all members.

Public Member Functions

 Exception (const char *d, const char *f, int l)
 Constructor.
 Exception (Exception right, const char *d, const char *f, int l)
 Constructor.
void AddMsg (const char *str)
 Add some text to description.
std::string Msg ()
 Get exceptions description.

Static Public Member Functions

static void PreCreate (char *f, int l)
 Init static variables for exception position.
static Exception Create (char *format,...)
 Create instance of exception.

Static Protected Attributes

static char desc_buf [1024]
 temporal buffer for description.


Detailed Description

Exception class.

Definition at line 21 of file exception.h.


Constructor & Destructor Documentation

MWidgets::Exception::Exception ( const char *  d,
const char *  f,
int  l 
)

Constructor.

Parameters:
d description.
f file source.
l code line.

Definition at line 16 of file exception.cpp.

Referenced by Create().

MWidgets::Exception::Exception ( Exception  right,
const char *  d,
const char *  f,
int  l 
)

Constructor.

Parameters:
right previous exception,for organising call stack.
d description.
f file source.
l code line.

Definition at line 33 of file exception.cpp.

References AddMsg(), and Msg().


Member Function Documentation

void MWidgets::Exception::AddMsg ( const char *  str  ) 

Add some text to description.

Parameters:
str some text.

Definition at line 73 of file exception.cpp.

Referenced by Exception().

Exception MWidgets::Exception::Create ( char *  format,
  ... 
) [static]

Create instance of exception.

parameters like in printf.

Definition at line 57 of file exception.cpp.

References desc_buf, and Exception().

std::string MWidgets::Exception::Msg (  ) 

Get exceptions description.

Returns:
description string.

Definition at line 68 of file exception.cpp.

Referenced by Exception().

void MWidgets::Exception::PreCreate ( char *  f,
int  l 
) [static]

Init static variables for exception position.

Parameters:
f source file name.
l source file line.

Definition at line 51 of file exception.cpp.


Member Data Documentation

char MWidgets::Exception::desc_buf [static, protected]

temporal buffer for description.

Definition at line 29 of file exception.h.

Referenced by Create().


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 13:47:46 2006 for MWidgets by  doxygen 1.4.7