//any method can throw an error+(void) methodWithException { @throw [NSException exceptionWithName:@"TestException" reason:@"test exception" userInfo:nil];}