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

Error Message when SQL is unavailable

Explorer ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

Our server is going to have some maintenance done in the middle of the night so the SQL server that our website runs from will be unavailable for about 30 minutes. We want to do a pretty error page letting people know that maintenance is being done. CF will still be running. I must not be operating on all cylinders today because the answer seems to be in the back of my mind but I can't figure out for the life of me what it is. We already trap for errors with CFERROR and a custom error page. Will that catch it? If it does, I guess we would just need to change the message???
TOPICS
Advanced techniques

Views

253

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
LEGEND ,
Feb 24, 2009 Feb 24, 2009

Copy link to clipboard

Copied

LATEST
In your application.cfc, onRequestStart method, write some code to re-direct to the error page if now() is between timestamp A and timestamp B.

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