Used with the cftry and cfcatch tags. Retrieves a Java
exception object from a Java object.

getException(javaobject) → returns any

This function requires Adobe ColdFusion.  Not supported on Lucee, etc.

getException Argument Reference

javaobject any

Examples sample code invoking the getException function

Renders map of exception data, when trying to access a non-existent element in an ArrayList.

arrayList = createObject("JAVA", "java.util.ArrayList").init();
try {writeDump(arrayList.get(2));}
catch(java.lang.IndexOutOfBoundsException _) {

Fork me on GitHub