core/exception.h File Reference


Detailed Description

Id
exception.h,v 1.4 2007/10/13 05:30:27 d3g637 Exp

Definition in file exception.h.

Go to the source code of this file.

Classes

struct  s_exception_handler

Defines

#define CATCH(X)   } else {X = exception_msg();
#define ENDCATCH   } delete_exception_handler(_handler);}
#define THROW(X)   throw_exception(X);
#define TRY   { EXCEPTIONHANDLER *_handler = create_exception_handler(); if (_handler==NULL) output_error("%s(%d): exception handler creation failed",__FILE__,__LINE__); else if (setjmp(_handler->buf)==0) {

Typedefs

typedef s_exception_handler EXCEPTIONHANDLER
 the exception handler structure

Functions

EXCEPTIONHANDLERcreate_exception_handler (void)
 Creates an exception handler for use in a try block.
void delete_exception_handler (EXCEPTIONHANDLER *ptr)
 Deletes an exception handler from the handler list.
char * exception_msg (void)
 Retrieves the message of the most recently thrown exception.
void throw_exception (char *format,...)
 Throw an exception.


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy