Contents

exceptionHandler(_:shouldHandle:mask:)

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

Declaration

func exceptionHandler(_ sender: NSExceptionHandler!, shouldHandle 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 handled 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 handle the exception, NO otherwise.