RE: cfthrow from onRequestStart / flashagteway

2006-06-27 Thread Andrew Stevens
Thanks for that. I had hoped I could throw the exception back to Flash like it can be done from methods in other components :( I'm trying to make use of onError but I'm not sure it fits. How does this sound: I implemented onError, which now fires when I cfthrow from inside onRequest

Re: cfthrow from onRequestStart / flashagteway

2006-06-26 Thread Michael Dinowitz
A CFThrow tosses an error up to the parent of a template. An application.cfc in some ways acts as the parent of the template but if you do a CFThrow inside of it when using a gateway, there's nowhere for the error to go other than the global error handler. Better to call the onError m

cfthrow from onRequestStart / flashagteway

2006-06-26 Thread Andrew Stevens
Hi would anyone know why I can’t use CFTHROW from within Application CFC onRequestStart()? I am calling a CFC from Flash via the flashgateway. If I cfthrow I get “06/26 23:07:37 Error [jrpp-3] - Event Handler Exception.” in Coldfusion. I’m stumped. Thanks. -- No virus

Re: cfscript equivalent for cfthrow

2006-03-30 Thread Jon Gunnip
AIL PROTECTED]> wrote: > What's the equivalent to cfthrow inside cfscript? > > try{ > ... > }catch(Any e){ > //Throw new exception > } > > -- > Oleg Gunkin > Email: [EMAIL PROTECTED] > Phone: (604) 666-9392 > Emerging Technologies / Pacific Web S

RE: cfscript equivalent for cfthrow

2006-03-29 Thread Dave Watts
> What's the equivalent to cfthrow inside cfscript? > > try{ > ... > }catch(Any e){ > //Throw new exception > } It's exactly that - try and catch: http://livedocs.macromedia.com/coldfusion/7/htmldocs/0978.htm#1161053 Dave Watts, CTO, Fig Leaf

cfscript equivalent for cfthrow

2006-03-29 Thread Oleg Gunkin
What's the equivalent to cfthrow inside cfscript? try{ ... }catch(Any e){ //Throw new exception } -- Oleg Gunkin Email: [EMAIL PROTECTED] Phone: (604) 666-9392 Emerging Technologies / Pacific Web Services Information Technology Services Public Works and Government Services C

cfthrow/cferror require session management?

2005-06-23 Thread Ian Skinner
I was writing some form validation and using cfthrow to throw validation errors to a exception handling page defined with cferror. But instead of getting details about my error, I was getting a something about session not being defined on line 4. Well, session surly was not defined; I

Re: Passing CFTHROW errorcode to CFERROR Template

2003-12-24 Thread S . Isaac Dealey
that's rather strange... iirc the error generated in the template specified by cferror should be identical to any error that would be generated by cfthrow-cfcatch. You might rewrite it temporarily with throw-catch to test and see what results you get. > It seems I can't pass a CFTHR

Passing CFTHROW errorcode to CFERROR Template

2003-12-23 Thread Kevin Marino
It seems I can't pass a CFTHROW "errorCode" back to a CFERROR Template. I do not get an error just no value also type comes back as "coldfusion.runtime.CfErrorWrapper" The CFERROR is a site wide error handler so errorcodes could be different, but template is same. Outsid

CFTHROW in a CFC/Webservice

2003-12-17 Thread Alexander Sherwood
If you use CFTHROW within CFC that is invoked via a webservice, the default error returned is an Application/Axis fault. Is there any way to return just the native error type/information thrown in the CFC without the Axis wrapper? How have others worked around this? Thanks

Display calling page code in error screen after cfthrow, not custom tag code

2003-09-22 Thread Samuel Neff
I'm writing a custom tag that validates attribute values and if a value isn't valid it throws an error message consistent with CF's internal messages, like this: But when the error is thrown CF displays the custom tag code as the location of the error, like this: Attribut

Re: CFTHROW with Webservices

2002-11-13 Thread Alexander Sherwood
der Sherwood >wrote: > > When using CFTHROW with Web Services, is there a way to trim down the > > error > > message returned? > > > > When called as a component, the cfcatch.detail and cfcatch.message are > > fine, but when called as a web service, they

Re: CFTHROW with Webservices

2002-11-13 Thread Sean A Corfield
On Wednesday, Nov 13, 2002, at 10:57 US/Pacific, Alexander Sherwood wrote: > When using CFTHROW with Web Services, is there a way to trim down the > error > message returned? > > When called as a component, the cfcatch.detail and cfcatch.message are > fine, but when called as a

CFTHROW with Webservices

2002-11-13 Thread Alexander Sherwood
When using CFTHROW with Web Services, is there a way to trim down the error message returned? When called as a component, the cfcatch.detail and cfcatch.message are fine, but when called as a web service, they are loaded with AXIS fault codes, etc. How has anyone else handled this? Thanks

RE: Custom error (cfthrow) question

2002-02-28 Thread Shawn Grover
atch block specifically for database types of errors. Hope that helps. Shawn Grover -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 3:00 PM To: CF-Talk Subject: RE: Custom error (cfthrow) question I tried the "nativeerrorcode"

RE: Custom error (cfthrow) question

2002-02-28 Thread Dave Watts
> I tried the "nativeerrorcode" attribute and I get this error > (on a 5.0 server): > > Just in time compilation error > An unknown attribute 'NATIVEERRORCODE' has been encountered ... If you're using ODBC, you'll want to reference CFCATCH.SQLState. CFCATCH.NativeErrorCode is for native driver

RE: Custom error (cfthrow) question

2002-02-28 Thread Christopher Olive
.4092 http://www.atnetsolutions.com -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 5:00 PM To: CF-Talk Subject: RE: Custom error (cfthrow) question I tried the "nativeerrorcode" attribute and I get this error (on a 5.0 server)

RE: Custom error (cfthrow) question

2002-02-28 Thread Owens, Howard
following attributes: * TYPE > -Original Message- > From: Fred Jambukeswaran [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 12:19 PM > To: CF-Talk > Subject: RE: Custom error (cfthrow) question > > Lets say you wanted to throw a fieldmi

RE: Custom error (cfthrow) question

2002-02-28 Thread Owens, Howard
Thanks all for the help! H. > -Original Message- > From: Christopher Olive [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, February 28, 2002 12:18 PM > To: CF-Talk > Subject: RE: Custom error (cfthrow) question > > when you trap an error of type database,

RE: Custom error (cfthrow) question

2002-02-28 Thread Fred Jambukeswaran
Lets say you wanted to throw a fieldmissing error use cfthrow like: Then you can catch it along with your database error as follows: -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday

Re: Custom error (cfthrow) question

2002-02-28 Thread Brook Davies
errors, to put up a custom error message. > >I want an error message for : ODBC Error Code = 22001 (String data right >truncation) > >If that error comes up, as opposed to any other error, I want to be able to >say, "Hey buddy, you're input field is too big -- trim it b

RE: Custom error (cfthrow) question

2002-02-28 Thread Christopher Olive
s.com -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 3:03 PM To: CF-Talk Subject: Custom error (cfthrow) question I've used CFTRY/CFCATCH before. But I've never been clear on exactly how to catch specific ODBC type of errors, to

Custom error (cfthrow) question

2002-02-28 Thread Owens, Howard
or, I want to be able to say, "Hey buddy, you're input field is too big -- trim it back") I've used CFTHROW to do something like throw but I'm not sure I can catch and ODBC error and throw a custom error -- ca

Re: CFTHROW

2000-08-11 Thread Gene Kraybill
Miriam Hirschman wrote: > How Do I define my own error in a cfthrow? I would like to say if the error > is an invalid search criteria then Try something like this: #CFCATCH.Message# Basically the idea is to wrap the CFTHROW in conditional code so t

CFTHROW

2000-08-11 Thread Miriam Hirschman
How Do I define my own error in a cfthrow? I would like to say if the error is an invalid search criteria then Thanks,   ---miriam -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To