Hi Scott,

Your cfcatch will only catch errors within your application. <cfhttp> effectively takes the execution outside of your app and the error information will be contained within the content returned by cfhttp.

If 'somepage.cfm' is (as it appears) part of your application can you call it as a custom tag or <cfinclude> it instead? If you need URL vars for the somepage.cfm to work then just set them in advance of including the file.

Brett
B)


Scott Thornton wrote:
Hi,

I am calling a page :

<CFTRY>

<cfhttp url = "SOMEPAGE.CFM?urlvar=1"
 method = "get">
</cfhttp>         

<CFCATCH TYPE="ANY">

<CFFILE action="Append">
blah blah blah
</cfifle>

</CFCATCH>


</CFTRY>

and have deliberately changed a query so that it would cause an error on 
somepage.cfm.

The problem is, there is no error being caught. Is what I am trying to do 
possible???

Secondly, if anyone knows a better method than cfhttp for calling ( kinda like 
including) other cf pages that use URL var, Id like to hear it.

Scott Thornton, Programmer
Application Development
Information Services and Telecommunications
Hunter-New England Area Health Service
Phone  RNH +61 2 49236078
Fax       +61 2 49236076

[EMAIL PROTECTED]


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/


--
Brett Payne-Rhodes
Eaglehawk Computing
t: +61 (0)8 9371-0471
f: +61 (0)8 9371-0470
m: +61 (0)414 371 047
e: [EMAIL PROTECTED]
w: www.ehc.net.au

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to