Returns a copy of a caught exception as a struct, with keys such as message, detail, type, stackTrace and tagContext. The copy is a separate object from the exception.
exceptionCopy(exception)
→ returns struct
catch block.
try {
throw(message="boom");
} catch (any e) {
copy = exceptionCopy(e);
}
writeOutput(copy.message);
Expected Result: boom
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.