• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Error Handling

Community Beginner ,
Apr 18, 2006 Apr 18, 2006

Copy link to clipboard

Copied

I use MX 6.1
Is there a way using cfcatch to display the problem code when an error has occurred?
I have tried CFCATCH.Snippet but that doesn't work...

Can anyone point me in the right direction?
TOPICS
Advanced techniques

Views

352

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 18, 2006 Apr 18, 2006

Copy link to clipboard

Copied

Eg)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 18, 2006 Apr 18, 2006

Copy link to clipboard

Copied

I suppose my initial question wasn't so clear...
cfcatch is fine the way i'm using it, i get all the information like the line the error occurred on, but i'm now looking for a SNIPPET of the code that caused the problem...

According to the URL below the variables mentioned should work
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/expres15.htm

HOWEVER;
Snippet & TokenText don't exist, there's nothing there...
No matter what error I try to force

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 19, 2006 Apr 19, 2006

Copy link to clipboard

Copied

Your URL points to CF 6.1 livedocs. Perhaps these CFCATCH variables were removed in CF 7. Or maybe, since they are syntax/parsing variables, they are not showing up in your particular CFCATCH.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 19, 2006 Apr 19, 2006

Copy link to clipboard

Copied

LATEST
Thank for your suggestions jdeline but;
In my original post I mentioned I am using 6.1...
and my CFCATCH is set for any type of error but no matter what kind of error I force (application, database, expression, etc...) the snippet doesn't seem to exist.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation