Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

Why is my try/catch and onError() failing to handle invalid CFML construct errors?

$
0
0

I was playing around with different ways to set cookies and in the process I use the cfcookie tag wrong. It threw an error and the onError() sort of did its job. Rather than giving a nice clean error like normal, the page completely quit processing.

 

So I played around some more and tried this with out an onError() in the application.cfc.

<cftry>

    <cfset asdf = />

   

    <cfcatch type="any">

        <cfdump var="#cfcatch#">

    </cfcatch>

</cftry>

 

It threw the error as if the try/catch wasn't there. Is this normal and it has taken me years to notice it?

 

Phil


Viewing all articles
Browse latest Browse all 6243

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>