Type Method

raise:format:arguments:

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

Declaration

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

Parameters

name

The name of the exception.

format

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

argList

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

Discussion

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.