Ditto....was about to say the same thing....have you checked this Aidan?

> -----Original Message-----
> From: Lucas Sherwood [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, September 25, 2002 4:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] Error handling in CFMX
> 
> 
> Hi Aidan
> this throws an errror as createDate() requires three variables,
> year,month,day
> 
> hence it throws a complile time error hence is not traped by 
> run time error
> trapping...
> 
> L.
> ----- Original Message -----
> From: "Aidan Whitehall" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 25, 2002 4:15 PM
> Subject: RE: [ cf-dev ] Error handling in CFMX
> 
> 
> > are you asking why
> >
> > <cfset x = y> or
> > <cfoutput>#Date#</cfoutput>
> >
> > fail?
> 
> No; apologies if it wasn't clear. With this in Application.cfm:
> 
> <cferror type="EXCEPTION" exception="ANY"
> template="/errors/exception.cfm">
> <cferror type="REQUEST" template="/errors/request.cfm">
> 
> and just this line in a template
> 
> <cfset x = y>
> 
> when y isn't defined, "errors/exception.cfm" is displayed (as you'd
> hope). However, putting just this line of code
> 
> <cfset x = CreateDate(Date)>
> 
> when Date isn't defined, displays a standard-looking ColdFusion error
> page saying "Parameter validation error for function CREATEDATE", and
> not "errors/exception.cfm". Anyone know why?
> 
> And is there a way of using cftry/cfcatch/cfthrow to get it to display
> "errors/exception.cfm" with an appropriate error message? (I 
> was looking
> at cfthrow details="" message="" earlier and wondered how they were
> used)
> 
> I've only dabbled with exception handling before and really 
> need to get
> a better grasp of how it works. Thanks
> 
> 
> --
> Aidan Whitehall <[EMAIL PROTECTED]>
> Macromedia ColdFusion Developer
> Fairbanks Environmental +44 (0)1695 51775
> 
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ______________________________________________________________
> __________
> 
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to