Instance Method

handleFailureInMethod:object:file:lineNumber:description:

Logs (using NSLog) an error message that includes the name of the method that failed, the class name of the object, the name of the source file, and the line number.

Declaration

- (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(NSInteger)line description:(NSString *)format, ...;

Parameters

selector

The selector for the method that failed

object

The object that failed.

fileName

The name of the source file.

line

The line in which the failure occurred.

format,...

A format string followed by a comma-separated list of arguments to substitute into the format string. See Formatting String Objects for more information.

Discussion

Raises NSInternalInconsistencyException.

See Also

Handling Assertion Failures

currentHandler

Returns the NSAssertionHandler object associated with the current thread.

- handleFailureInFunction:file:lineNumber:description:

Logs (using NSLog) an error message that includes the name of the function, the name of the file, and the line number.