RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokableClassRegistry.RegisterException Method

Registers the remotable exception classes that calls to an invokable interface can raise.

Pascal
procedure RegisterException(Info: PTypeInfo; AClass: TClass);
C++
__fastcall RegisterException(PTypeInfo Info, TClass AClass);

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.
 

 

RegisterInterface 

ERemotableException 

RegisterExceptionMethod 

Creating Custom Exception Classes for Web Services

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!