Skip to main content
Inspiring
December 24, 2006
Question

Custom error page and 'catch'

  • December 24, 2006
  • 2 replies
  • 315 views
Hi, I don't have access to the coldfusion admin (I'm hosting with a company that runs the admin portion) I'm wondering 2 things. Can I still have a custom error page (not just replacing the 404.htm etc) and can I also have some kind of 'catch' with CF that will email me the error message for review?

Thanks
    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    December 26, 2006
    > Can I still have a custom error page (not just replacing the 404.htm etc) and
    > can I also have some kind of 'catch' with CF that will email me the error
    > message for review?


    Yes, but you'll need the Administrator to configure the mail settings.

    <cftry>
    <cfcatch>
    <cfmail>
    <!--- error has occurred --->
    </cfmail>
    <cflocation url="myErrorPage.cfm">
    </cfcatch>
    </cftry>

    Inspiring
    December 24, 2006
    Did you try looking at the cferror tag in the cfml reference manual? If you don't have a manual, the internet does.