there is an error on the calling page - and that is the problem; it should have been caught in the CFC function
I will create a sample demo... On 8/27/07, MrBuzzy <[EMAIL PROTECTED]> wrote: > > > Hi, > > So are you seeing an error when you run the page? Or is it all quiet? > > On 8/27/07, AJ Mercer <[EMAIL PROTECTED]> wrote: > > If the second email is in the try / catch, and there is an error, I wont > get > > the email > > > > I commented out the second email, but that didn't help > > > > > > > > On 8/27/07, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > > > > hmm, > > > > > > to me that should work. > > > > > > however, I would place the cfmail (second in the try/catch block and > catch > > on the mail exception, it may be possible that is erroring. Your best > bet is > > fusionDebug and line debug the code, and see what is happening. > > > > > > > > > > > > On 8/27/07, AJ Mercer <[EMAIL PROTECTED] > wrote: > > > > > > > > ok, the rest of the script looks like this > > > > > > > > > > > > </cfcatch> > > > > </cftry> > > > > > > > > <cfmail to=" [EMAIL PROTECTED]" from=" [EMAIL PROTECTED]" > > subject="INFO: VETtrack testing #APPLICATION.applicationname# - > > #CGI.SCRIPT_NAME# #now()#" type="html"> > > > > <cfdump var="#ARGUMENTS#" label="ARGUMENTS" /> > > > > <cfdump var="#private#" label="private" /> > > > > <cfdump var="#responceXML#" label="responceXML" /> > > > > <cfdump var="#CGI#" label="CGI" /> > > > > </cfmail> > > > > > > > > <cfreturn responceXML /> > > > > </cffunction> > > > > > > > > > > > > > > > > > > > > On 8/27/07, Steve Onnis < [EMAIL PROTECTED] > wrote: > > > > > > > > > > > > > > > wheres the second email? > > > > > > > > > > ________________________________ > > From: cfaussie@googlegroups.com [mailto: [EMAIL PROTECTED] On > > Behalf Of AJ Mercer > > > > > Sent: Monday, 27 August 2007 5:58 PM > > > > > To: cfaussie@googlegroups.com > > > > > Subject: [cfaussie] Re: cfthrow in CFC > > > > > > > > > > > > > > > > > > > > I am getting the email from within the catch - so it is caught. > > > > > > > > > > But maybe it dropped it again ;-) > > > > > > > > > > > > > > > <cftry> > > > > > <cfif CGI.HTTPS EQ 'off' OR CGI.SERVER_PORT_SECURE EQ > 0> > > > > > <cfthrow type="Application" detail="This Web > Service > > must be run over HTTPS" message="This Web Service must be run over > HTTPS" /> > > > > > </cfif> > > > > > > > > > > > > > > > > > > > > <cfcatch> > > > > > > > > > > <cfmail to="[EMAIL PROTECTED]" from=" > > [EMAIL PROTECTED]" subject="ERROR: #APPLICATION.applicationname# - > > #CGI.SCRIPT_NAME# #now()#" type="html"> > > > > > <cfdump var="#private#" label="private" /> > > > > > <cfdump var="#cfcatch#" label="error" /> > > > > > </cfmail> > > > > > > > > > > <cfset private.errorCode = CFCATCH.ErrNumber /> > > > > > <cfset private.errorText = CFCATCH.Message /> > > > > > <cfset private.success = 'False' /> > > > > > > > > > > <cfset responceXML = > > getResponceXML(ArgumentCollection=private) />> > > > > > > > > > > </cfcatch> > > > > > </cftry> > > > > > > > > > > > > > > > On 8/27/07, Steve Onnis <[EMAIL PROTECTED] > wrote: > > > > > > > > > > > > > > > > > > i didnt think you could catch after a throw. if you throw it > thats > > it, the exception has been thrown and cant be caught. > > > > > > > > > > > > ________________________________ > > From: cfaussie@googlegroups.com [mailto: [EMAIL PROTECTED] On > > Behalf Of AJ Mercer > > > > > > Sent: Monday, 27 August 2007 5:46 PM > > > > > > To: cfaussie@googlegroups.com > > > > > > Subject: [cfaussie] cfthrow in CFC > > > > > > > > > > > > > > > > > > > > > > > > If a function has a throw inside a try/catch, should the error > be > > contained in that function? > > > > > > In the catch I send and email, and I received that. > > > > > > There is an email directly after the try / catch that is not > getting > > sent > > > > > > > > > > > > I have the web service called by cfinvoke which is inside a try > / > > catch and it is receiving the CFC function's error. > > > > > > > > > > > > I want the CFC function to handle error and send back a standard > XML > > format (which will contain an error message if an error occurs). > > > > > > > > > > > > Cheers > > > > > > Andrew > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Aegeon Pty. Ltd. > > > > www.aegeon.com.au > > > > Phone: +613 8676 4223 > > > > Mobile: 0404 998 273 > > > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---