RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokableClassRegistry.RegisterExceptionMethod Method

Registers methods of an invokable interface that can raise a registered exception class.

Pascal
procedure RegisterExceptionMethod(Info: PTypeInfo; AClass: TClass; const MethodName: string);
C++
__fastcall RegisterExceptionMethod(PTypeInfo Info, TClass AClass, const AnsiString MethodName);

Call RegisterExceptionMethod for each method of an invokable interface that can raise a registered exception class. The exception class must be previously registered by a call to the RegisterException method. If you do not call RegisterExceptionMethod, then the WSDL document for the interface treats the exception as associated with all methods of the interface. If you want to limit the use of the exception to a subset of the methods, call RegisterExceptionMethod for each method that can raise the exception. After the first method is registered this way, the exception becomes limited to that method alone (and to any method subsequently registered by another call to RegisterExceptionMethod).  

Info points to the type information of the invokable interface that can raise the exception.  

AClass describes the exception class. This must be the class reference used to register the exception previously by a call to the RegisterException method.  

MethodName is the name of a method that can raise the exception. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!