Network Deployment (Distributed operating systems), v8.0 > Reference > Developer best practices
ActiveX client programming, handling error codes
All exceptions thrown in Java code are encapsulated and thrown again as a COM error through the ISupportErrorInfo interface and the EXCEPINFO structure of IDispatch::Invoke(), the Err object in Visual Basic and VBScript. Because there are no error numbers associated with Java exceptions, whenever a Java exception is thrown, the entire stack trace is stored in the error description text and the error number assigned is 0x6003.
In Visual Basic or VBScript, use the Err.Number and Err.Description fields to determine the actual Java error. Non-Java errors are thrown as you would expect via the IDispatch interface; for example, if a method cannot be found, then error 438 "Object doesn't support this property or method" is thrown.
Error numbers and descriptions.. Error numbers and descriptions in VBScript
Error number Description 0x6001 Java Native Interface (JNI) error 0x6002 Initialization error 0x6003 Java exception. Error description is the Java Stack Trace. 0x6FFF General Internal Failure
ActiveX to EJB Bridge
Develop ActiveX client application code