Instance Method

exceptionHandler(_:shouldHandle:mask:)

Implemented by the delegate to evaluate whether the delegating NSExceptionHandler instance should handle a given exception.

Declaration

func exceptionHandler(_ sender: NSExceptionHandler!, shouldHandle exception: NSException!, mask aMask: Int) -> Bool

Parameters

sender

The NSExceptionHandler object sending the message.

exception

An NSException object describing the exception to be evaluated.

aMask

The bit mask indicating the types of exceptions handled by the NSExceptionHandler object. See Logging and Handling Constants and System Hang Constants for descriptions of the possible enum constants.

Return Value

true to have the NSExceptionHandler object handle the exception, false otherwise.

See Also

Logging and handling exceptions

func exceptionHandler(NSExceptionHandler!, shouldLogException: NSException!, mask: Int)

Implemented by the delegate to evaluate whether the delegating NSExceptionHandler instance should log a given exception.