COM.error Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()))