Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1097539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:26:56+00:00 2026-05-17T00:26:56+00:00

In my Application.cfc, I have an onError function that works great for all errors

  • 0

In my Application.cfc, I have an onError function that works great for all errors except when the page being called has a missing closing tag. The error being thrown is InvalidEndTagNestingConfigurationException. I would like to catch these types errors as well in the application.

Why doesn’t onError catch a missing closing tag error? Is there a way to catch these errors?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:26:57+00:00Added an answer on May 17, 2026 at 12:26 am

    The reason these types of errors are not caught by onError is that its a compile error – the CF parser can’t even compile the template to classes to run them, so Application.cfc hasn’t even run at the time the error is thrown.

    These should never ever really happen, because you should have tested the code before it ever went live 😉

    The best way to make sure that this doesn’t happen is to use the cfcompile to pre-compile your source to find any of these compile-time errors. The compiler will report any compile-time errors. Its efficient, as well, as it will only re-compile templates that have changed, so it takes very little time after the first time.

    If you use Eclipse (well, even if you don’t), then you can set up an Ant task that makes this easier – and you can even make it a pre-commit action before you commit code to your source control repository.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a facebook application that was using a CFC I had found on
I have a page that uses a .post to submit to my cfc. I
I have a couple of places that have some code like this: <cfinvoke component=#application.path#cfc/eval_faculty
I have an existing CFC that works fine when passing structures into the method.
In my application I have a sidebar (on every page) that displays a list
I would like to add some code to my Application.cfc onRequestEnd function that, if
I have a Flex application that calls a function which searches a large document
I have a CFC as singletone object in Application scope. One of the methods
I have a group of CFC's that I access from two seperate Applicaiton scopes.
I have: 1. inetpub/wwwroot/ProjectName/Application.cfc 2. inetpub/wwwroot/ProjectName/Admin/Application.cfc I want #2 to extend #1 and override

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.