Soap.InvokeRegistry.TInvokableClassRegistry.RegisterException
Delphi
procedure RegisterException(Info: PTypeInfo; AClass: TClass);
C++
void __fastcall RegisterException(System::Typinfo::PTypeInfo Info, System::TClass AClass);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Soap.InvokeRegistry.pas Soap.InvokeRegistry.hpp |
Soap.InvokeRegistry | TInvokableClassRegistry |
Description
Registers the remotable exception classes that calls to an invokable interface can raise.
Use RegisterException to register a remotable exception class. When an exception class is registered, its definition is exported to WSDL documents so that it can be used to communicate exception information between clients and servers.
Info points to the type information of the invokable interface that can raise the exception. If more than one interface can raise the exception, you must call this method once for each interface type.
AClass describes the exception class. This must be the class reference for an ERemotableException descendant.
Note: After a call to RegisterException, the exception class is registered so that it is associated with all methods of the specified interface. If only a subset of the interface's methods raise the exception, you can indicate this by calling the RegisterExceptionMethod method for each method that can raise the exception.