I had previously used the following (without the "IsDefined('CFCATCH.TAGCONTEXT')"), and found in certain situations CFCATCH.TAGCONTEXT was not defined and threw errors. I'm now going to use the CFCATCH.TAGCONTEXT array, but with IsDefined as shown:
<cfif IsDefined('CFCATCH.TAGCONTEXT') >
<cfloop index = i from = 1
to = #ArrayLen(CFCATCH.TAGCONTEXT)#>
<cfset sCurrent = #CFCATCH.TAGCONTEXT[i]#>
<br>#i# #sCurrent["ID"]#
(LINE:#sCurrent["LINE"]#,#sCurrent["COLUMN"]#)
#sCurrent["TEMPLATE"]#
</cfloop>
</cfif>
I tried <cfdump var="#cfcatch#">, and it returned the following:
------------------------------------
object of coldfusion.runtime.UndefinedElementException
Methods getMessage (returns java.lang.String)
getResolvedname (returns java.lang.String)
getErrNumber (returns int)
getLocalizedMessage (returns java.lang.String)
getType (returns java.lang.String)
getString (returns java.lang.String)
getRootCause (returns java.lang.Throwable)
setLocale (returns void)
findThrowableTarget (returns int)
findAdvancedCFTarget (returns int)
findCustomTarget (returns int)
unwrap (returns java.lang.Throwable)
getDetail (returns java.lang.String)
printStackTrace (returns void)
printStackTrace (returns void)
printStackTrace (returns void)
fillInStackTrace (returns java.lang.Throwable)
toString (returns java.lang.String)
initCause (returns java.lang.Throwable)
getCause (returns java.lang.Throwable)
getStackTrace (returns [Ljava.lang.StackTraceElement;)
setStackTrace (returns void)
hashCode (returns int)
getClass (returns java.lang.Class)
wait (returns void)
wait (returns void)
wait (returns void)
equals (returns boolean)
notify (returns void)
notifyAll (returns void)
objectType class java.lang.Class
container class java.lang.Object
element DN
------------------------------------
Maybe I'm missing something, but I don't see the value of the above dump. Is some documentation somewhere to let me know what it all means?
Thank you,
Stan Winchester
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]