Dmn-js@11 Promise returns "warning" error. Is there any other kinds of error returned from Promise?

I am trying to change the source code from callback to promise according to the below link.

The question is whether there would be any other error message that the promise like importXML and saveXML would return other than “warnings.”
Below is the screenshot of the error that i got from importXML promise.


And it would be nice to know if there is any API document of dmn-js@11.

Hi @donnieyu ,

#importXML returns either an ImportXMLResult or an ImportXMLError, both can have warnings, which is a List<String>. Please see the jsdocs in the source code directly: dmn-js/Manager.js at develop · bpmn-io/dmn-js · GitHub