PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Creating a page for managing errors
  • Implementing the custom management of errors
  • Operating mode
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Specific page for displaying the site errors
Overview
If an error occurs in the dynamic WEBDEV site, a standard error page is displayed by default. This page informs the Web user of the error that occurred in the site.
Until version 17, these errors could be customized in the WEBDEV administrator.
From version 17, the customization of error messages is simplified: all you have to do is include in your site the page that will be used to display the errors.
How to proceed?

Creating a page for managing errors

The page for managing errors is created via the wizard for page creation.
To create a page for managing errors:
  1. Create a new page ("File .. New .. Page"). The wizard for page creation starts.Create a new page:
    • Click among the quick access buttons.
    • Click "Page" in the wheel that is displayed. The window for creating a new element is displayed: click "Page" then "Page".
    • The wizard for page creation starts.
  2. The wizard proposes to create a blank page or an error page.
  3. Select one of the available error pages:
    • Generic error:
      This generic error page contains a caption and an image, and it can be customized by using the skin template of your site, by modifying the message, ...
    • Simple error:
      This simple error page contains a caption, an image and the title of the WEBDEV error. The [%TITLE%] tag is replaced at run time by the title of the error. This page can be customized by using the skin template of your site, by modifying the message, ...
    • Detailed error:
      This detailed error page contains:
      • an image,
      • the title of the WEBDEV error. The [%TITLE%] tag is replaced at run time by the title of the error.
      • the full error message. The [%MSG%] tag is replaced at run time by the error message.
      • the system message. The [%SYS%] tag is replaced at run time by the system error message.
        This page can be customized by using the skin template of your site, ...
  4. Validate the wizard.
  5. Specify the name of the page to create and validate. The static page corresponding to the selected type of page is automatically created.

Implementing the custom management of errors

To specify the project page that will be used to manage the errors:
  1. Display the description window of project ("Project .. Project description").Display the description window of project (on the "Project" pane, in the "Project" group, click "Description").
  2. In the "Project" tab, select the requested error page:
    Note: only the static pages of the projet are proposed.
  3. Validate.

Operating mode

If a page for custom management of errors was defined in the project, this page is automatically displayed if an error occurred when deploying the site.
Special case: If a customization of errors was previously implemented via the WEBDEV administrator for this site ("Management" tab of the WEBDEV administrator), this customization is not kept. However, if a custom caption was specified in the WEBDEV administrator (for a specific error for example), this caption will be displayed in the error page.
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment