Instantly share code, notes, and snippets.

Embed
What would you like to do?
// MyFailingObject.m
@implementation MyFailingObject
- (void)throwException {
@throw [NSException exceptionWithName:NSGenericException
reason:@"An exception on purpose"
userInfo:nil];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment