Contents

exceptionHandler(_:shouldLogException:mask:)

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

Declaration

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

Parameters

  • sender:

    The doc://com.apple.documentation/documentation/exceptionhandling/nsexceptionhandler object sending the message.

  • exception:

    An Nsexception object describing the exception to be evaluated.

  • aMask:

    The bit mask indicating the types of exceptions logged by the doc://com.apple.documentation/documentation/exceptionhandling/nsexceptionhandler object. See Logging and Handling Constants and System Hang Constants for descriptions of the possible enum constants.

Return Value

YES to have the doc://com.apple.documentation/documentation/exceptionhandling/nsexceptionhandler object log the exception, NO otherwise.