Great!Thanks, Joe...
-Original Message-
From: Joe Rinehart [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 11:26 AM
To: CF-Talk
Subject: Re: Is there a way to have all CFCatch messages display at once?
Rick -
StructIsEmpty() returns a boolean representing whether
Will do!Thanks, Dave...
Rick
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 11:38 AM
To: CF-Talk
Subject: RE: Is there a way to have all CFCatch messages display at once?
Is there a way to use a wildcard to check and see if a
certain
Hi, all.
I run my validation on forms by having a form submit back to the page it's
on,
then just use CF code validation (since I know little about _javascript_)
and then, either showing a CFCatch error or processing the form
successfully,
then CFLocating to a confirmation page.
This works fine
Faircloth [EMAIL PROTECTED]
Date: Tue, 22 Jun 2004 20:57:59 -0400
Subject: Is there a way to have all CFCatch messages display at once?
To: CF-Talk [EMAIL PROTECTED]
Hi, all.
I run my validation on forms by having a form submit back to the page it's
on,
then just use CF code validation (since I know
name.
/CFIF
CFCatch Type=AddError
CFOUTPUT#CFCatch.Message#/CFOUTPUT
/CFTRY
Rick
-Original Message-
From: Adrocknaphobia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 8:55 PM
To: CF-Talk
Subject: Re: Is there a way to have all CFCatch messages display at once?
Yeah, the array
redisplay
the form. That's exactly what TerraForm does.
Matt.
_
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 23 June 2004 1:19 p.m.
To: CF-Talk
Subject: RE: Is there a way to have all CFCatch messages display at once?
Let see...so how would that be coded?
How do I validate
Thanks, all...
I think I may be getting what you're saying...I'll tinker with this and see
what I can come up with...
Rick
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 9:19 PM
To: CF-Talk
Subject: RE: Is there a way to have all CFCatch
On Jun 22, 2004, at 5:55 PM, Adrocknaphobia wrote:
Although rather than blast a user with all
those errors, why not do something more subtle like highlight the
invalid form fields with another color.
I think you want to do both -- a list of errors and highlighted
fields-- maybe highlight by
if I run this code, with a c:\cfusion\runtime\servers\lib path present on
my server
cftry
cfquery name=tony datasource=#usersDSN#
select * from companyTables
/cfquery
cfcatch type=any
cfdump var=#cfcatch#
/cfcatch
/cftry
I get this response...
[unknown type]
however, if I remove the c
=anyDSNonYourServer
select * from blahBlahBooey
/cfquery
cfcatch type=any
cfdump var=#cfcatch#
/cfcatch
/cftry
!--- snip above ---
thanks.
...tony
tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337
visit www.antiwrap.com to send long url emails
cfdump var=#cfcatch#, and it returned the following:
object of coldfusion.runtime.UndefinedElementException
Methods getMessage (returns java.lang.String)
getResolvedname (returns java.lang.String)
getErrNumber (returns int)
getLocalizedMessage (returns
I hope they fix the structure error with cfcatch variable
that I reported about a year ago in the Blackstone, you
cannot pass the cfcatch structure (for it is a structure) as
a type = struct to a function, it has to be type = any. I
think it had other problems with its structure identity
Stan Winchester wrote:
Have you tried using cfdump var=#CFCATCH#?
I've read the documentation, and when I use the following:
type: #cfcatch.type#br
message: #cfcatch.message#br
detail: #cfcatch.detail# br
extended info: #cfcatch.extendedinfo#
It returns the following error message which
on.
As was mentioned in an earlier post, the most comprehensive thing to do
is just cfdump out the cfcatch scope (or cfdump out the variables scope,
which includes cfcatch and any queries you may have run; see below).In
CF6+ at least, this will give you a very nice trail of nested templates;
i.e. foo.cfm
Are the output statements within a catch any block?
-Original Message-
From: Stan Winchester [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 22, 2004 11:46 PM
To: CF-Talk
Subject: Re: Using CFCATCH to display default error messages
I've read the documentation, and when I use the following
I hope they fix the structure error with cfcatch variable that I reported
about a year ago in the Blackstone, you cannot pass the cfcatch structure
(for it is a structure) as a type = struct to a function, it has to be type
= any. I think it had other problems with its structure identity as well
Is there a way to get CFCATCH to display the default CFMX errors?
Specifically I want to know the template name and line number where the
error occurred, so I can have them emailed to me.
Thank you,
Stan Winchester
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User
There are lots of cfcatch vars in the cfcatch structure but these are
probably the ones that will interest you most
cfcatch.message
cfcatch.detail
cfcatch.extendedinfo
Paul
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
From: Stan Winchester
Is there a way to get CFCATCH to display the default CFMX
errors? Specifically I want to know the template name and
line number where the error occurred, so I can have them
emailed to me.
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-a10.htm
Gotta
was generate from the same page as my 1st example except I commented the any cfcatch block.
I want to be able to email error messages with the same detail as in the default error messages.
From: Stan Winchester
Is there a way to get CFCATCH to display the default CFMX
errors? Specifically I want
Does anyone know why this line errors out only in CF 5?The following
code is being run inside of a catch block:
error occurred on Line #CFCATCH.TAGCONTEXT[1][LINE]#
I could have sworn it worked in CF 4.5.1, but my memory is fading daily
on them good ol' days.
hi there.
If im trying to cftry/cfcatch a webservice
that may or may not work 100%, don't ask, and all I want
is for it to be skipped if its not working, do I only need to
have a blank cfcatch pair, with nothing in between?
thanks!
tony
r e v o l u t i o n w e b d e s i g n
[EMAIL
afaik, that's all.there doesn't need to be anything between the cfcatch
block.
but wouldn't you want to be setting some variables to take the place of
those that didn't get passed in by the webservice?
(just curious) :)
- Original Message -
From: Tony Weeg [EMAIL PROTECTED]
To: CF-Talk
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 12:00 PM
To: CF-Talk
Subject: Re: cftry/cfcatch question
afaik, that's all.there doesn't need to be anything between the
cfcatch block.
but wouldn't you want to be setting some variables to take
Yes, you can also get a little fancy by nesting cftry blocks inside the cfcatch block of another cftry.This would allow you to try a web service two or three times, or alternate web services or something before you gave up as unworkable.
cftry
do something
cfcatch
cftry
do something again
ahh yeahgood idea.
thanks!
...tony
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 12:05 PM
To: CF-Talk
Subject: RE: cftry/cfcatch question
Yes, you can also get a little fancy by nesting cftry blocks inside
the cfcatch block
Tony,
On 4/15/2004 at 11:52, you wrote:
TW do I only need to have a blank cfcatch pair, with nothing in
TW between?
This will suffice: cfcatch /
~ Ubqtous ~
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
excellent.
thanks.
...tony
-Original Message-
From: Ubqtous [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 12:44 PM
To: CF-Talk
Subject: Re: cftry/cfcatch question
Tony,
On 4/15/2004 at 11:52, you wrote:
TW do I only need to have a blank cfcatch pair, with nothing in
TW
Hi guys,
In my cfcatch i've got a bunch of cfif's checking to make sure all parts of my form were correct.
e.g.:
cfif form.PropertyDataVillageTown is cfset MessageAlert = MessageAlert font color='b23f3f'bVillage/Town/b/font must have a value.brcfset ErrorFound = yes/cfif
cfif
Message-
From: Stuart Kidd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 8:54 AM
To: CF-Talk
Subject: cfqueryparam, cfcatch 'n cftry
Hi guys,
In my cfcatch i've got a bunch of cfif's checking to make sure all parts
of my form were correct.
e.g.:
cfif form.PropertyDataVillageTown
, this
can be done on the database but I wouldn't do it that way!
Hope that helps
Kola
-Original Message-
From: Stuart Kidd [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 15:54
To: CF-Talk
Subject: cfqueryparam, cfcatch 'n cftry
Hi guys,
In my cfcatch i've got a bunch of cfif's checking
Thanks so much for your help Kola and Nathan! :-)
-Original Message-
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 16:46
To: CF-Talk
Subject: RE: cfqueryparam, cfcatch 'n cftry
Stuart
Hi, a couple of things. First of all if you are checking ifform fields
have
Hi,
I've a problem with CFSET, i'm trying to have a font color change in one of my statements but it doesn't seem to work.The CFSET is within a CFCATCH and CFTRY.
cfset MessageAlert = pThe following fields have errors:/p
cfif form.PropertyDataCountry is cfset MessageAlert = MessageAlert Country
, CFTRY and CFCATCH probs.
Hi,
I've a problem with CFSET, i'm trying to have a font color change in one
of my statements but it doesn't seem to work.The CFSET is within a
CFCATCH and CFTRY.
cfset MessageAlert = pThe following fields have errors:/p cfif
form.PropertyDataCountry is cfset
that's ending the set value too soon. Just leave out the quotes and try.
Greg
-Original Message-
From: Stuart Kidd [mailto:[EMAIL PROTECTED]
Sent: Monday, February 23, 2004 11:59 AM
To: CF-Talk
Subject: basic CFSET, CFTRY and CFCATCH probs.
Hi,
I've a problem with CFSET, i'm trying
23, 2004 9:12 AM
To: CF-Talk
Subject: RE: basic CFSET, CFTRY and CFCATCH probs.
Thanks Greg, that's done it... just made them single ones.
-- Original Message --
From: Greg Luce [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date:Mon, 23 Feb 2004 12:04:44
Thanks for that Jevo! :-)
-Original Message-
From: J E VanOver [mailto:[EMAIL PROTECTED]
Sent: 23 February 2004 18:03
To: CF-Talk
Subject: RE: basic CFSET, CFTRY and CFCATCH probs.
FYI Stuart, you can also use a PAIR of double quotes in a CF string to
represent a quote.
In your
Was there changes made to the way CF handles the cfcatch structure between
CF 5 and MX 6.1? The reason I ask is because some of us are noticing that a
plug-in written for FB4 is not functioning in MX as it does in CF 5. I know
this is SOT, but thought maybe someone has some ideas on what
It seems like if I invoke a static method of a CFC from within a CFCATCH
block the CFCATCH scope is cleaned out. Meaning I can't create a stock Error
handler CFC and call that from within a CFCATCH block without having to
individual passing in each of the CFCATCH variables (Type...)
Is there any
Isn't this what the CFERROR tag was meant for?Or has it been deprecated
with MX and the CFC concept?
Shawn
-Original Message-
From: Craig Earls [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 2:07 PM
To: CF-Talk
Subject: Invoking CFC from within a CFCATCH block
It seems like
Craig,
On 2/6/2004 at 16:07, you wrote:
CE Is there any way to specify a default error handler? I am stuck using a
CE shared server where I cannot get access to the server error logs, and no one
CE seems to know how to create an application specific error log...
In Application.cfm:
cferror
: Re: Invoking CFC from within a CFCATCH block
Craig,
On 2/6/2004 at 16:07, you wrote:
CE Is there any way to specify a default error handler? I am stuck using a
CE shared server where I cannot get access to the server error logs, and no
one
CE seems to know how to create an application specific
Craig,
On 2/6/2004 at 17:04, you wrote:
CE I was hoping to be able to generate a log as well, but I'll try
CE this.
If it's enabled, use CFLOG or CFFILE in addition to the CFMAIL.
~ Ubqtous ~
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Yes, I finally just broke down and started passing the individual CFCATCH
variables into my error handling CFC and CFMAILed and CFFILEd a log.I wish
I could figure out why CFDUMP says #CFCATCH# is a struct, but I can't pass
is as one, or use StructCopy()...
-Original Message-
From
-Talk
Subject: CFSaveContent inside CFCatch?
I am trying to use the cfsavecontent tag inside of a cfcatch.Is there
some reason this should not work?
I have the following code, and the dump always results in an empty string.
I have tried changing the structure variable in the cfsavecontent tag
, but it has the same result.
cfcatch type=securityException
!--- generate user error message ---
cfsavecontent variable=content.main
span class=errorTextYou have attempted to access an area of the
community to which
you do not have access. Click a
href="" to go
Good Afternoon
Is it at all possible to put CFTry/CFCatch into a page by using two
include statements? (one at the top, and one at the bottom) I am trying
to setup better error handling on my site, but do not want to have to
put the full code in each page, just include it. This way, If I need
I believe it's possible.
Even simpler, if all your cfcatch sections are the same, is put the top into
Applicaiton.cfm and the bottom into OnRequestEnd.cfm.
Probably not the best practice in the world, but should be easier then
converting hundreds of already written templates
or sanctioned by these organizations. This e-mail is
unclassified based on the definitions in E.O. 12958.
-Original Message-
From: Dave Sueltenfuss [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 1:34 PM
To: CF-Talk
Subject: CFTry/CFCatch
Good Afternoon
Is it at all possible
Why not just use a cferror tag in your application.cfm?
- Original Message -
From: Dave Sueltenfuss [EMAIL PROTECTED]
Date: Thursday, September 11, 2003 11:12 am
Subject: CFTry/CFCatch
Good Afternoon
Is it at all possible to put CFTry/CFCatch into a page by using two
include
Is it at all possible to put CFTry/CFCatch into a page by
using two include statements? (one at the top, and one at
the bottom) I am trying to setup better error handling on
my site, but do not want to have to put the full code in
each page, just include it. This way, If I need to add
Everyone,
In CF5 we created a custom tag that was used for all catching all our
errors. It would loop through all the elements/attributes (cfcatch.detail,
cfcatch.message, etc) of cfCatch and email them to us. It worked
beautifully and saved lots of time, but some things changed in CFMX.
One
cfdump isn't available on CF 4.5.x.
Then create one. Here's the code from my CF_DUMP tag:
cfsetting enablecfoutputonly=yes
!---
Usage:cf_dump
var = ...
Attributes: var (var, required) - variable to be dumped
---
!--- attributes
-Original Message-
From: Al Everett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 9:32 AM
To: CF-Talk
Subject: RE: Good CFCatch code
cfdump isn't available on CF 4.5.x.
Then create one. Here's the code from my CF_DUMP tag:
cfsetting enablecfoutputonly=yes
and if you have a valid license for it :-p
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: 01 August 2002 14:41
To: CF-Talk
Subject: RE: Good CFCatch code
And you can always use cfa_dump from Spectra if you have
Assuming you're on CFMX?
cfdump var=#cfcatch#/ will get you started...
That'll work fine on CF 4.5.x on up.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Your ad
Watts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 1:40 PM
To: CF-Talk
Subject: RE: Good CFCatch code
Assuming you're on CFMX?
cfdump var=#cfcatch#/ will get you started...
That'll work fine on CF 4.5.x on up.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com
cfdump isn't available on CF 4.5.x.
D'oh! But of course. I'd forgotten about using the cf_dump custom tag back
then.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Your
on CFMX?
cfdump var=#cfcatch#/ will get you started...
.. you left out a on the end of the attribute, but ... why assuming CFMX?
This works beautifully on CF 5 -- minus the trailing / since CF 5 and before
weren't technically xml languages.
Isaac Dealey
Certified Advanced ColdFusion Developer
This works beautifully on CF 5 -- minus the trailing / since
CF 5 and before weren't technically xml languages.
Actually, though, you can still use the trailing slash with many tags
(perhaps all, for all I know) in CF 4.x and higher. This is actually done
quite a bit, when calling nested
CFCatch code
This works beautifully on CF 5 -- minus the trailing / since
CF 5 and before weren't technically xml languages.
Actually, though, you can still use the trailing slash with many tags
(perhaps all, for all I know) in CF 4.x and higher. This is
actually done
quite a bit, when
:[EMAIL PROTECTED]]
Sent: Thursday, 1 August 2002 10:03 a.m.
To: CF-Talk
Subject: RE: Good CFCatch code
This works beautifully on CF 5 -- minus the trailing / since
CF 5 and before weren't technically xml languages.
Actually, though, you can still use the trailing slash with many tags
Subject: RE: Good CFCatch code
This works beautifully on CF 5 -- minus the trailing / since
CF 5 and before weren't technically xml languages.
Actually, though, you can still use the trailing slash with many tags
(perhaps all, for all I know) in CF 4.x and higher. This is
actually done
On Wednesday, July 31, 2002, at 02:39 , S. Isaac Dealey wrote:
cfdump var=#cfcatch#/ will get you started...
.. you left out a on the end of the attribute,
I've been doing that a lot recently... :|
but ... why assuming CFMX?
This works beautifully on CF 5 -- minus the trailing / since CF 5
Anyone have a snippet of code that would show all the information available
when an error occurs? I am looking for something like what CF displays if I
wasn't using the catch but I will email it to me when it does :)
Thanks,
Neil
Something like this?
cfmail to=your email here from=your email here subject=Error
CFSET todayDate = Now()
Referrer = #cgi.HTTP_REFERER#
WebBrowser = #CGI.HTTP_USER_AGENT#
Full URL this alert was created at
httpcfif cgi.HTTPS IS
YESs/cfif://#CGI.HTTP_HOST##CGI.SCRIPT_NAME#CFIF
I highly reccomend CF_MailTemplateErrors by Benjamin Bloodworth.
It works all the way back to v4.5.
http://devex.macromedia.com/developer/gallery/info.cfm?ID=921ADF4D-5C48-11D4-83E000508B94F85Amethod=Full
I was going to try and make one myself and took a look at the dev
exchange and found this,
on CFMX?
cfdump var=#cfcatch#/ will get you started...
Sean A Corfield -- http://www.corfield.org/blog/
If you're not annoying somebody, you're not really alive.
-- Margaret Atwood
__
Get the mailserver that powers this list
There's a good list in the CFTRY/CFCATCH CF documentation.
Chris Norloff
-- Original Message --
from: Neil H. [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
date: Wed, 31 Jul 2002 14:03:40 -0400
Anyone have a snippet of code that would show all
Anyone have a snippet of code that would show all the
information available when an error occurs? I am
looking for something like what CF displays if I wasn't
using the catch but I will email it to me when it does :)
I prefer to do this (in CFscript)
messageString=;
for (i
the
error and redirect.
Any ideas...
Thanks,
Dave
-
cftry
cfquery name=x datasource =x
blah blah
/cfquery
cfcatch type=database
script language=JavaScript
alert (Database Server is down! Please click OK to continue.);
self.location
Message-
From: Chris Norloff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 9:45 AM
To: CF-Talk
Subject: Re: CFTRY/CFCATCH Database errors
Strange, seems okay to me. We use this in CF 4.5 and it works okay catching
if the Oracle database (using native drivers) goes down.
I'd still
.
Remember that rubbish SQL will also cause a CFCATCH TYPE=database to
hit
I'm working with the presumption you're using CF5, as I'm not 100% sure
this works with CF4.x
What I'd suggest is looping through the CFCATCH.TagContent array and see
what's in there for different errors, that way you know
ideas...
Thanks,
Dave
-
cftry
cfquery name=x datasource =x
blah blah
/cfquery
cfcatch type=database
script language=JavaScript
alert (Database Server is down! Please click OK to continue.);
self.location=TempPage.cfm;
/script
Hello,
Whats the best way to stop the execution of a page after a error has been
caught using CFCATCH. Can I put a CFABORT or CFEXIT tag within the CFCATCH?
Thanks in advance for any advice.
Mark Kecko
Technology Director
MediaPost Communications
[EMAIL PROTECTED]
http://www.mediapost.com
(203
Yes you can...
-Original Message-
From: mark kecko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 7:58 AM
To: CF-Talk
Subject: CFABORT vs CFEXIT in CFCATCH TAG
Hello,
Whats the best way to stop the execution of a page after a error has been
caught using CFCATCH. Can I
If you want to stop executing the page, use cfabort. If you are in a CT
and want to stop executing the CT but continue the page, use cfexit. It
doesn't matter that you use it in a CFCATCH, it will work anywhere
-Original Message-
From: mark kecko [mailto:[EMAIL PROTECTED]]
Sent
Whats the best way to stop the execution of a page after a error
has been caught using CFCATCH. Can I put a CFABORT or CFEXIT
tag within the CFCATCH? Thanks in advance for any advice.
It depends on what you want to do. If you want to end the request
unconditionally, then I recommend using
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits
a bad file type. I only want to allow them to upload .gif files.
I can use the CFCATCH TYPE=Any to trap it, but I was hoping that I could
trap specifically for a bad file type.
I noticed that there are a whole slew
I would like to trap a CFFILE error using CFTRY/CFCATCH if
the user submits a bad file type. I only want to allow them
to upload .gif files.
I can use the CFCATCH TYPE=Any to trap it, but I was hoping
that I could trap specifically for a bad file type.
I noticed
.
-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 February 2002 7:13 AM
To: CF-Talk
Subject: Advanced CFCATCH Exception Types
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user
submits
a bad file type. I only want to allow them to upload .gif
]
..
-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:13 PM
To: CF-Talk
Subject: Advanced CFCATCH Exception Types
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits
a bad file type. I only want to allow them to upload .gif
the user to the
problem. If I use Any as the exception type, then I can't
know for sure that it was a bad file type versus another
problem.
You might find some specific information in some of the other CFCATCH
variables. You might simply use CFDUMP to display the entire CFCATCH scope,
and see
PROTECTED]]
Sent: Wednesday, February 06, 2002 3:13 PM
To: CF-Talk
Subject: Advanced CFCATCH Exception Types
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user
submits
a bad file type. I only want to allow them to upload .gif files.
I can use the CFCATCH TYPE=Any to trap it, but I
-direct the user
and alert them to the problem. Simply using catch type=Any doesn't really
give me enough info to do this.
Original Message Follows
From: Christopher Olive [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: Advanced CFCATCH Exception
http://www.uxbinfo.com/
-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:13 PM
To: CF-Talk
Subject: Advanced CFCATCH Exception Types
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits
a bad file type. I only
-To: [EMAIL PROTECTED]
date: Mon, 4 Feb 2002 14:40:41 -0500
Is there a way to use CFTRY - CFCATCH to rollback all database tranactions
within given block? In otherwords, If I'm running 4 update queries and th
e
first three are ok but the last one fails I want to roll them all back. I
s
-To: [EMAIL PROTECTED]
date: Mon, 4 Feb 2002 14:40:41 -0500
Is there a way to use CFTRY - CFCATCH to rollback all database tranactions
within given block? In otherwords, If I'm running 4 update queries and th
e
first three are ok but the last one fails I want to roll them all back. I
s
. It uses CFTRY/CFCATCH
unnecessarily, and won't even work if you run it, if I recall correctly.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Why Share?
Dedicated Win
I need to put iun place a really simple error management system. I was
wondering what the drawbacks, if any were of putting cftry/catch statements
in an application.cfm were?
Any other ides on how to easily allow 1 generic error page for our app would
be appreciated.
Subject: Cftry/cfcatch
I need to put iun place a really simple error management
system. I was
wondering what the drawbacks, if any were of putting
cftry/catch statements
in an application.cfm were?
Any other ides on how to easily allow 1 generic error page
for our app would
-Original Message-
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Sent: 04 February 2002 15:20
To: CF-Talk
Subject: RE: Cftry/cfcatch
cferror is exactly what you are looking for!
Kola Oyedeji
Web developer
Macromedia Certified Advanced ColdFusion 5 Developer
ekeda ltd
http
Is there a way to use CFTRY - CFCATCH to rollback all database tranactions
within given block? In otherwords, If I'm running 4 update queries and the
first three are ok but the last one fails I want to roll them all back. Is
there a better way to do this than usign CFTRY - CFCATCH?
Mark Kecko
Mark;
Put everything in a CFTRANSACTION type=serializeable block. Should
one fail,
they are all rolled back.
Mike
-Original Message-
From: mark kecko [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 2:41 PM
To: CF-Talk
Subject: Using CFTRY - CFCATCH to rollback database
/cfcatch can be added so the user doesn't get an
error screen, but as far as the functionality you're looking for I think
you'll find it with that tag.
t
**
Tyler M. Fitch
Certified Advanced ColdFusion 5 Developer
ISITE Design, Inc.
615
I'm using cfmail to notify when a page fails on our site.
An example of the code is as follows.
Error Type: #cfcatch.type#
Message: #replace(cfcatch.message,nbsp;, ,ALL)#
cfif cfcatch.type is DATABASENativeErrorCode:
#cfcatch.nativeerrorcode#/cfif
cfif cfcatch.type is DATABASESQLState:
Chuck, heres what i do
cftry
page in here..
cfcatch type=Any
cfset x = getHTTPRequestData()
cfmail to= cc= bcc= from= subject= type=HTML
h1#cgi.server_name#/h1
h2Error in #GetCurrentTemplatePath()#/h2
Error Details;br
cfdump var=#cfcatch#
hr
HTTP Request Details;br
cfdump
]]
Sent: Monday, January 07, 2002 3:08 PM
To: CF-Talk
Subject: RE: cfcatch and can't catch
Thanks for the response. Interesting observation - I AM
using a rethrow in a cfcatch, though I don't think that's
what's causing the problem.
I use a rethrow because timeout errors come in two types
. I
must have missed that before, or I was reading a different description.
In my code it works quite well to cfrethrow from inside a cfcatch block and have it
caught by the next cfcatch block - thus, I have two cfcatch type=any blocks. Now that
I see it's not supposed to work that way I'll see
Here's an odd one - I've got two instances where an error was, at the same time,
caught and handled by cfcatch, and NOT-CAUGHT and hit the CFserver.
I'll put the shorter of the two examples below - one is the application.log file
entry, and the other is our logging of all error.vars available
201 - 300 of 359 matches
Mail list logo