Type Method


A convenience method that creates and raises an exception.


+ (void)raise:(NSExceptionName)name format:(NSString *)format, ...;



The name of the exception.


A human-readable message string (that is, the exception reason) with conversion specifications for the variable arguments that follow.


Variable information to be inserted into the formatted exception reason (in the manner of printf).


The user-defined information is nil for the generated exception object.

See Also

Creating and Raising an NSException Object

+ exceptionWithName:reason:userInfo:

Creates and returns an exception object .

+ raise:format:arguments:

Creates and raises an exception with the specified name, reason, and arguments.

- initWithName:reason:userInfo:

Initializes and returns a newly allocated exception object.

- raise

Raises the receiver, causing program flow to jump to the local exception handler.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software