True... Bad example on my part. Let me rephrase then, what is the best way
to catch cfhttp errors then when a connection, for whatever cannot be
established?
Perhaps <cfif NOT isdefined("cfcatch.type")> or <cfif cfcatch.type NEQ
"COM.Allaire.ColdFusion.HTTPFailure">
I just want to be sure I am not missing something obvious.
Thanks, Che
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Friday, September 21, 2007 3:11 PM
To: CF-Talk
Subject: RE: Catching CFHTTP errors when a PC is off.
> Looking for the best way to catch errors when making a CFHTTP call and
> looking for a failsafe if the remote PC is off.
> Is there anything better than using a try/catch and then writing
> conditional logic based on if the cfcatch.message is defined and =
> "The request has exceeded the allowable time limit Tag: cfhttp"?
How could you possibly know that the remote PC is off? If you don't get a
response, there could be many reasons - networking problems at the client,
networking problems along the route, networking problems at the server, for
example.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized instruction
at our training centers in Washington DC, Atlanta, Chicago, Baltimore,
Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289133
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4