Objective-C Exceptions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux