This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]