Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

LobTraceException Class Reference

A traced exception. More...

#include <lobtracestream.h>

List of all members.

Public Types

enum  lte_type {
  unknown = 0, file_io, memory, bad_value,
  overflow
}
 type of the exception
Remarks:
Put your own exception types in here.
More...



Public Methods

 LobTraceException (LobTraceStream &lts=g_lobTraceStream, const char *file=NULL, int line=-1, lte_type type=unknown, const char *msg=NULL)
int getLine ()
const char * getFile ()
int getType ()
const char * getMessage ()

Protected Attributes

const char * m_msg
const char * m_file
int m_line
int m_type


Detailed Description

A traced exception.

throwing a LobTraceException by using the LOB_EXCEPTION macro will log where, what and when the exception has been thrown.

Remarks:
You can use it as is or derivate it. You may want to add more exception types, have a look at lte_type.


Member Enumeration Documentation

enum LobTraceException::lte_type
 

type of the exception

Remarks:
Put your own exception types in here.

Enumeration values:
unknown 
file_io 
memory 
bad_value 
overflow 


Constructor & Destructor Documentation

LobTraceException::LobTraceException LobTraceStream   lts = g_lobTraceStream,
const char *    file = NULL,
int    line = -1,
lte_type    type = unknown,
const char *    msg = NULL
[inline]
 


Member Function Documentation

const char* LobTraceException::getFile   [inline]
 

int LobTraceException::getLine   [inline]
 

const char* LobTraceException::getMessage   [inline]
 

int LobTraceException::getType   [inline]
 


Member Data Documentation

const char* LobTraceException::m_file [protected]
 

int LobTraceException::m_line [protected]
 

const char* LobTraceException::m_msg [protected]
 

int LobTraceException::m_type [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun Dec 15 23:17:21 2002 for LobTraceStream by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001