This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Objective-C Exceptions
- From: Tilo Prütz <tilo dot pruetz at infopark dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 24 Mar 2009 11:54:54 +0100
- Subject: Objective-C Exceptions
Hi all,
given the following situation in Objective-C:
@try {
@try {
@raise @"first";
} @finally {
@raise @"finally";
}
} @catch (id e) {
printf("exception: %s\n", [e cString]);
}
Is there any way to either get the first exception within the
@finally-block or to get both exceptions within the @catch-block?
I have code where the @finally-block does some checks which may raise an
exception but I don't want to loose the original exception.
If there was no original exception but the checks fail I want the
exception they throw.
Thanks in advance
Tilo Prütz