i never get the error.cfm page . The query fails and it just
goes displays the page anyway with header and footer. it's as
though it's not being caught or something. I've tried with both
type="exception" and "request"
One, when an exception occurs, the try/catch mechanism and
the onError() event override the cferror tag, in that order.
Second, the cferror tag only registers an error that occurs
after the tag. Hence the general advice to let Coldfusion
read the tag as early as possible during a request.
Putting the two together, you can see why you get the result
you get. The error in the query causes execution to move into the
cfcatch block. However, still within the cfcatch block, there is no
code after the cferror tag, hence no exception for the cferror tag
If you comment out the onError method and use the following
code, Coldfusion will take you to the error.cfm page. Nevertheless,
I cannot think of a reason why you would want to handle errors in