iOS Exception

Generate Exception

Use @throw

@throw @"test exception";

NSException raise method

[NSException raise:@"TestException" format:@"Test Exception"];