ExceptionHandler Element

An event handler that catches exceptions for Invoke, Set, or command actions.

Syntax

<ExceptionHandler
    CaughtException="Exception"
    CaughtExceptionType="string"
    Command="ICommand object"
/>

Attributes

CaughtException

Indicates the exception that was caught. This value is read-only.

CaughtExceptionType

Indicates the name of the exception that was caught. This value is read-only.

Command

Specifies an ICommand object associated with the click handler. The Invoke method for the command will be called when a click event occurs.

Public Instance Events

EventDescription
CaughtNotification that is sent when the event is fired.

Remarks

When an Invoke, Set, or Command action is called, any exceptions are caught. If an ExceptionHandler has been provided for the action, the Caught event is fired on the exception.

Requirements

Platform: Windows 7

See Also

Show: