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
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
Hi would anyone know why I cant 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.
Im stumped.
Thanks.
--
No virus
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
> 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
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
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
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
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
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
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
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
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
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
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"
> 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
.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)
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
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,
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
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
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
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
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
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
25 matches
Mail list logo