LDK::Exception Class Reference
[ExceptionsExceptions]

Base class of all LDK exceptions. More...

#include <LDK/Exceptions.h>

Inheritance diagram for LDK::Exception:

Inheritance graph
[legend]
Collaboration diagram for LDK::Exception:

Collaboration graph
[legend]

Public Member Functions

 Exception (int line, const char *file, const char *msg=NULL)
int line () const throw ()
const char * file () const throw ()
virtual const char * what () const throw ()

Protected Attributes

int mLine
char mFile [128]
char * mMsg

Detailed Description

Keeps track of line number and file where the exception was thrown from (via a macro system). Derived from std::exception to ease integration with other libraries, but those Global Village Idiots at Microsoft haven't dll-exported std::exception, which could make things INTERESTING :(

Definition at line 59 of file Exceptions.h.


Constructor & Destructor Documentation

LDK::Exception::Exception ( int  line,
const char *  file,
const char *  msg = NULL 
)

Contructor

Parameters:
line The line from which the exception was thrown.
file The source file name from which the exception was thrown.
msg An error message supplied by the user.


Member Function Documentation

int LDK::Exception::line (  )  const throw () [inline]

Gets the line number from which the exception was thrown.

Returns:
The line number.

Definition at line 75 of file Exceptions.h.

const char* LDK::Exception::file (  )  const throw () [inline]

Gets the source file name from which the exception was thrown

Returns:
The file name.

Definition at line 79 of file Exceptions.h.


The documentation for this class was generated from the following file:
Generated on Fri Aug 17 18:32:27 2007 for LDK by  doxygen 1.5.1