Soap.InvokeRegistry.TInvokableClassRegistry.RegisterExceptionMethod

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterExceptionMethod(Info: PTypeInfo; AClass: TClass; const MethodName: string);

C++

void __fastcall RegisterExceptionMethod(System::Typinfo::PTypeInfo Info, System::TClass AClass, const System::UnicodeString MethodName);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry TInvokableClassRegistry

Description

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

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.

See Also