ExceptionFrame Struct Reference

Represents a frame inside an exception context. More...

Data Fields

jmp_buf address
 The continuation address of the current block.
ExceptionFrameprevious
 The previous (upper) frame.
e4c_Stage stage
 The current stage of this frame.
unsigned char thrown
 A flag that is set when an exception was thrown.
unsigned char uncaught
 A flag that is set when the exception was caught.
Exception exception
 The current exception being thrown.
const char * srcFile
 The path of the source code file from which the exception was thrown.
int srcLine
 The number of line from which the exception was thrown.
int errorNumber
 The value of errno at the time the exception was thrown.

Detailed Description

Represents a frame inside an exception context.

A new frame is created every time a group of try/ catch/finally blocks starts, and destroyed when the group ends.

Frames are stacked and dispatched in a First-In-Last-Out way. When an exception is thrown within a frame, it climbs towards the previous frames until it gets caught, otherwise the program ends.


Field Documentation

The continuation address of the current block.

The value of errno at the time the exception was thrown.

The current exception being thrown.

The previous (upper) frame.

The path of the source code file from which the exception was thrown.

The number of line from which the exception was thrown.

The current stage of this frame.

unsigned char ExceptionFrame::thrown

A flag that is set when an exception was thrown.

unsigned char ExceptionFrame::uncaught

A flag that is set when the exception was caught.


The documentation for this struct was generated from the following file:

exceptions4c version 1.3
Copyright 2010 Guillermo Calvo.

Generated on 24 Jan 2010 by doxygen 1.6.2