System.Rtti.TVirtualMethodInterceptor.OnException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnException: TInterceptExceptionNotify read FOnException write FOnException;

C++

__property _di_TInterceptExceptionNotify OnException = {read=FOnException, write=FOnException};

Properties

Type Visibility Source Unit Parent
property public
System.Rtti.pas
System.Rtti.hpp
System.Rtti TVirtualMethodInterceptor

Description

This event is called when the inherited implementation throws an exception.

Use the OnException event handler to inhibit an exception in the invocation of an inherited method. It gives an opportunity to inhibit unwinding of the exception, so that the method appears to return normally. Proxify must first be used to intercept the method calls of the particular class type. The documentation for TInterceptExceptionNotify describes the details of the parameters.

See Also