Built-in exceptions not being recognized by Illuminated Cloud, hence no autocomplete is available .
Issue #2019
invalid
There are some exception specific built in methods.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_exception_builtin.htm
try {
insert mList;
} catch (DmlException de) {
Integer numErrors = de.getNumDml();
System.debug('getNumDml=' + numErrors);
for(Integer i=0;i<numErrors;i++) {
System.debug('getDmlFieldNames=' + de.getDmlFieldNames(i));
System.debug('getDmlMessage=' + de.getDmlMessage(i));
}
}
But these getNumDml
etc does not gets recognized by Illuminated cloud.
and shows as error on editor.
Comments (5)
-
repo owner -
repo owner And here's the provided example code showing no errors against that OST:
-
reporter Ok yes, I see that in now in DMLException. I think I was searching in Exception class. Sorry for confusion .
-
reporter - changed status to invalid
Marking as invalid as it was just a typecasting issue.
-
repo owner - removed component
Removing component: Parser (automated comment)
- Log in to comment
Hi. Can you show me what
System.DmlException
looks like in your generated OST? Here's mine which includes those methods as reported by the Salesforce Tooling API: