Ah. EventName should be required=false. It's only passed when the
error occurs in an App.cfc method.

On 7/19/06, Robertson-Ravo, Neil (RX)
<[EMAIL PROTECTED]> wrote:
> That code does indeed error as expected, but still no fire of onError...
>
> Here is my onError...it could well have a problem - I have been staring at
> it long enough not to see!!
>
>
>         <cffunction name="onError" output="true" hint="Runs when an uncaught
> exception occurs in the application.">
>                 <cfargument name="exception" required=true/>
>                 <cfargument name="eventName" type="String" required=true/>
>
>                         <cflog file="NovaAPIError" text="Error">
>
>         </cffunction>
>
>
>
>
>
> -----Original Message-----
> From: Raymond Camden [mailto:[EMAIL PROTECTED]
> Sent: 19 July 2006 16:00
> To: CF-Talk
> Subject: Re: onError not firing
>
> If you make another error, something simple, like
>
> <cfoutput>#x#</cfoutput> (where x is not defined)
>
> Does your onError work? If not, you have an error in your onError.
> Maybe you could post the code?
>
>
> On 7/19/06, Robertson-Ravo, Neil (RX)
> <[EMAIL PROTECTED]> wrote:
> > OK,
> >
> > This is an odd one - I have a web service call which works a treat, but I
> am
> > now getting to the error trapping / logging parts.  I want to use onError
> > from within my Application.cfc, so I went into my remote method and
> changed
> > the following working line:
> >
> > <cfset novaRequest =
> > application.Response.init(XmlParse(arguments.novaRequest))>
> >
> > To
> >
> > <cfset novaRequest =
> > application.Responsex.init(XmlParse(arguments.novaRequest))>
> >
> > Now, this is erroring as expected but what it seems to be doing is never
> > triggering the onError method of the Application.cfc.  Then only time I
> can
> > get it to trigger is when I explicitly invoking the method directly. I
> know
> > it is not being called as I have placed a cflog call in the method which
> > never writes to he log dir. - the onRequestStart and OnRequestEnd methods
> > *DO* log....?
> >
> > I know Application.cfc is firing as, as you can see above I am referencing
> > application level objects....
> >
> > What the hell is going on? Why did my enforced error not get thrown to
> > onError?!
> >
> > This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
> > Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
> > Registered in England, Number 678540.  It contains information which is
> > confidential and may also be privileged.  It is for the exclusive use of
> the
> > intended recipient(s).  If you are not the intended recipient(s) please
> note
> > that any form of distribution, copying or use of this communication or the
> > information in it is strictly prohibited and may be unlawful.  If you have
> > received this communication in error please return it to the sender or
> call
> > our switchboard on +44 (0) 20 89107910.  The opinions expressed within
> this
> > communication are not necessarily those expressed by Reed Exhibitions.
> > Visit our website at http://www.reedexpo.com
> >
> >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:247053
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to