Type Method


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


+ (void)raise:(NSExceptionName)name format:(NSString *)format arguments:(va_list)argList;



The name of the exception.


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


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


The user-defined dictionary of the generated object is nil.

See Also

Creating and Raising an NSException Object

+ exceptionWithName:reason:userInfo:

Creates and returns an exception object .

+ raise:format:

A convenience method that creates and raises an exception.

- 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