error catch in cfml

how to catch Error Occurred While Processing Request

Page 1 of 1

2 Replies - 1224 Views - Last Post: 07 April 2010 - 07:13 AM Rate Topic: -----

#1 gpugal  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-April 10

error catch in cfml

Posted 07 April 2010 - 05:55 AM

The following information is meant for the website developer for debugging purposes.

Error Occurred While Processing Request

how to catch this error using
<cferror type="exception" template="CustomError.cfm">
<cferror type="request" template="CustomError.cfm">
in Application.cfm
Pugal
Is This A Good Question/Topic? 0
  • +

Replies To: error catch in cfml

#2 xheartonfire43x  Icon User is offline

  • D.I.C Regular

Reputation: 46
  • View blog
  • Posts: 454
  • Joined: 22-December 08

Re: error catch in cfml

Posted 07 April 2010 - 06:07 AM

What I would suggest is using an Application.cfc file and use the onerror and onMissingMethod methods. Those let you better able to catch errors, and application.cfm which seems to be what you are using is a bit out-dated nowadays. Check out the Livedocs for ColdFusion to learn more about Application.cfc
Was This Post Helpful? 0
  • +
  • -

#3 Craig328  Icon User is online

  • I make this look good
  • member icon

Reputation: 1924
  • View blog
  • Posts: 3,462
  • Joined: 13-January 08

Re: error catch in cfml

Posted 07 April 2010 - 07:13 AM

Pugal, what you posted looks to be something you saw pop up on the monitor as though it were an app error message. It actually tells you all you need to know about how to remedy the problem (or at least catch the error). Since it explicitly says "in Application.cfm" it would appear you're using an older version of CF. The last CF version to not have Application.cfc was MX6.1. If you're using anything later that MX6.1 then xheartonfire43x's suggestion is entirely the way to go. Application.cfc is the better way to deal with your application setup and error handling methods.

If you are using 6.1 or an earlier CF version then the link you need is this: Adobe LiveDocs entry for CFERROR.

Good luck!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1