Thanks, I got it to work
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328486
You can use different 'types' of catches.
See here for more info, http://www.cfquickdocs.com/cf8/#cfcatch
On Wed, Nov 18, 2009 at 8:08 AM, Keith McGee wrote:
>
> I want to catch missing template errors only,
>
> for example if a user has a link to an old template I don't want my
> exception.cf
March 29, 2000 3:07 PM
To: [EMAIL PROTECTED]
Subject: RE: CFTry Question
Thanks David
this works but I was kind of hoping it worked more like CFIF or CFSWITCH
like below
The file could not be updated. File is
-Original Message-
From: David Gassner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 1:12 PM
To: [EMAIL PROTECTED]
Subject: RE: CFTry Question
How about...
The file could not be updated. File is locked or read only
You can use to throw your own exceptions. I thought I saw a in
fhe cf45 docs that I think woudl do what you want...
Larry
>>> [EMAIL PROTECTED] 03/29/00 11:32AM >>>
I think what he is looking for is a way to return an exception, instead of
abort processing. I'd be interested in a solution to
t: Re: CFTry Question
>How do I return a success from CFTry?
>I have wrapped cftry around a cfflile call to intercept error messages if
>the file can not be updated but I want to return a success message if the
>was no errors. Here is what I have:
>
>
>
>
> The file coul
How about...
The file could not be updated. File is locked or read only.
Display success message...
> I have wrapped cftry around a cfflile call to intercept error messages if
> the file can not be updated but I want t
If it doesn't fail, it works. So if it isn't caught, it succeeded.
It worked!
The file could not be updated. File is locked or read only.
Chris Evans
[EMAIL PROTECTED]
http://www.fuseware.com
-Original Message-
From: Duan
>How do I return a success from CFTry?
>I have wrapped cftry around a cfflile call to intercept error messages if
>the file can not be updated but I want to return a success message if the
>was no errors. Here is what I have:
>
>
>
>
> The file could not be updated. File is locked or read only.
it will just fall through the TRY/CATCH if it's successful.
eg:
The file could not be updated. File is locked or read only.
#Output success message here#
Chris Olive
DOHRS Website Administrator
[EMAIL PROTECTED]
-Original Message-
From: Du
Simply enter your success text after you close your cfcatch... like so:
The file could not be updated. File is locked or read only.
The file was uploaded.
Mike Fleming
CF Codeslinger
"I spent my whole life not knowing what I want out of it, j
11 matches
Mail list logo