COM.error Method [AX 2012]

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

public COMError error()

Run On

Called

Return Value

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

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()))

Community Additions

ADD
Show: