Share via


COMError Class

The COMError class wraps any COM errors that occur during a COM method call.

Syntax

class COMError extends Object

Run On

Called

Methods

  Method Description
Gg821042.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif clear Clears the properties of the COMError object.
Gg821042.pubmethod(en-us,AX.60).gif description Returns a description of the error that occurred when the COM object was called.
Gg821042.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif finalize
Gg821042.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif helpContext Returns the Help context ID for the error that occurred when the COM object was called.
Gg821042.pubmethod(en-us,AX.60).gif helpFile Returns the name of the Help file that contains information about the error that occurred when the COM object was called.
Gg821042.protmethod(en-us,AX.60).gif new Initializes an instance of the COMError class. (Overrides the new Method.)
Gg821042.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif number Returns the error code of the error that occurred when the COM object was called.
Gg821042.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif source Returns the name of the component that caused the error that occurred when the COM object was called.
Gg821042.pubmethod(en-us,AX.60).gif toString Returns a string that contains the class handle and name, and sometimes additional information. (Overrides the toString Method.)
Gg821042.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg821042.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)

Top

Remarks

When an error occurs during a COM method call, the error code and the error description are stored in the COMError object.

The COMError object that is associated with a COM class is retrieved from the COM class by using the COM.error method.

Inheritance Hierarchy

Object Class
  COMError Class

See Also

COM.error Method