Jaa


COMError Class

Definition

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

public ref class COMError : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public class COMError : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
type COMError = class
    inherit XppObjectBase
Public Class COMError
Inherits XppObjectBase
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
COMError
Attributes
KernelClassAttribute Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute

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.

Constructors

COMError()
COMError(IntPtr)

Fields

__k_COMErrorId
kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
clear()

Clears the properties of the COMError object.

createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
description()

Returns a description of the error that occurred when the COM object was called.

equal(XppObjectBase) (Inherited from XppObjectBase)
finalize()
GetIntPtr() (Inherited from XppObjectBase)
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
helpContext()

Returns the Help context ID for the error that occurred when the COM object was called.

helpFile()

Returns the name of the Help file that contains information about the error that occurred when the COM object was called.

IsManagedValid() (Inherited from XppObjectBase)
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
newmethod()

Initializes an instance of the COMError class.

notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
number()

Returns the error code of the error that occurred when the COM object was called.

objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
source()

Returns the name of the component that caused the error that occurred when the COM object was called.

ToString()

Returns a string that contains the class handle and name, and sometimes additional information.

usageCount() (Inherited from XppObjectBase)
VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to