Jaa


COM.error Method

Definition

Returns a COMError object that is associated with the instance of the COM class.

public:
 virtual Dynamics::AX::Application::COMError ^ error();
public virtual Dynamics.AX.Application.COMError error ();
abstract member error : unit -> Dynamics.AX.Application.COMError
override this.error : unit -> Dynamics.AX.Application.COMError
Public Overridable Function error () As COMError

Returns

A COMError value that represents the error that is associated with the instance of the COM class.

Remarks

The following example shows how to retrieve the error object that is associated with an instance of the COM class.

COMError err; 
// The obj variable was previously instantiated. 
err = obj.error(); 
// Output the error number. 
info(strfmt("Error: %1", err.number()))

Applies to