
Securing ColdFusion • Chapter 10 443
<CFLOOP INDEX="i" FROM="1"
TO="#ArrayLen(Error[Key])#">
<li>
<CFLOOP COLLECTION="#Error[Key][i]#"
ITEM="Key2">
<B>#key2#</B>
- #Error[Key][i][Key2]#<BR>
</CFLOOP>
</CFLOOP>
</ol>
</CFIF>
</CFLOOP>
</DL></cfmail>
When an error occurs, a large amount of information is compiled
together into a structure called error. Much of this information is lost in
the standard logs. Additionally, when using a custom error handler, the
error is not logged as normal. For this reason, the code will take the
error structure, convert it into a WDDX text packet, and write it to a
new log file.
NOTE
WDDX is a way of taking complex data such as structures, ...