Main Page   File List   File Members   Related Pages  

frdi_exception.c File Reference

a wrapper for setjmp and longjmp that can be passed by reference More...

#include "frdi.h"

Functions

void frdiExceptionDebug2 (char *filename, int linenum, char *str)
void frdiExceptionDebug (char *str)
int frdiExceptionReport (frdi_exception *exception)
void frdiExceptionThrow (frdi_exception *exception, int err_num, char *message)
char * frdiStrCpy (frdi_exception *eh, char *in)
frdi_dict * frdiExceptionLookupEnglish ()
frdi_exception * frdiExceptionNew ()
void frdiExceptionFree (frdi_exception *exception)


Detailed Description

a wrapper for setjmp and longjmp that can be passed by reference

Author:
Douglas Reay <douglas-legal@reay.org>
Warning:

Function Documentation

void frdiExceptionDebug2 char *    filename,
int    linenum,
char *    str
 

send the debug information somewhere appropriate

void frdiExceptionDebug char *    str
 

send the debug information somewhere appropriate

Todo:
incorporate s __FILE__ and d __LINE__ (via a macro?) consider also a va args version

int frdiExceptionReport frdi_exception *    exception
 

report an exception. Options are: print it to stderr, log it go to a handler (takes an exception * as void *, returns an int as void *) re-throw to a parent exception Returns an error code

void frdiExceptionThrow frdi_exception *    exception,
int    err_num,
char *    message
 

What to use if you have a problem

char* frdiStrCpy frdi_exception *    eh,
char *    in
 

Copy a string into a newly memory allocated string

frdi_dict* frdiExceptionLookupEnglish  
 

lookup from error number to english word

frdi_exception* frdiExceptionNew  
 

create an exception handler

void frdiExceptionFree frdi_exception *    exception
 

release the object


Generated on Wed Aug 18 13:23:56 2004 for Project Fairdice by doxygen1.2.18