#include @interface Test : Object - init; @end @implementation Test -init { @throw([Object new]); } @end int main(void) { Test *test; @try { test = [Test new]; } @catch(Object *obj) { printf("exception thrown\n"); } }