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