>- see footer for list info -< http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applica tions_with_CFML/CFScript5.htm
-- Russ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allan Cliff Sent: 04 April 2006 15:43 To: Coldfusion Development Subject: [CF-Dev] Error Handling a UDF >- see footer for list info -< I downloaded a udf from cflib GetHostAddress http://www.cflib.org/udf.cfm?ID=446 When you try to get the host of a url that doesn't exists it throws an error. I have tried cftry around the UDF but to no avail http://www.arcweb.es/test.cfm The UDF is shown below, can i not put cftry inside the cfscript or call it another way? <cfscript> function GetHostAddress(host) { // Variables var iaclass=""; var addr=""; // Init class iaclass=CreateObject("java", "java.net.InetAddress"); // Get address addr=iaclass.getByName(host); // Return the address return addr.getHostAddress(); } </cfscript> Thanks Allan _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help >-< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
