ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Page
  • Overview
  • How to?
  • Creating a page for managing errors
  • Implementing the custom management of errors
  • Operating mode
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Specific page for displaying the site errors
Overview
If an error occurs in the dynamic WEBDEV website, a standard error page is displayed by default. This page informs the Web user of the error that occurred in the site.
To customize this error message, simply include the page to use to display the errors in your site.
How to?

Creating a page for managing errors

The page for managing errors is created via the page creation wizard.
To create a page for managing errors:
  1. Create a new page:
    • Click in the quick access buttons.
    • In the window that appears, click "Page" then "Page".
    • The page creation wizard starts.
  2. Click the "Error pages" tab of the wizard:
  3. Select one of the available error pages:
    • Generic error:
      This generic error page contains only a label and an image and can be customized, for example by using your site's skin template, modifying the message, etc.
    • Simple error:
      This simple error page contains a caption, an image and the title of the WEBDEV error. At runtime, the [%TITLE%] tag is replaced with the title of the error. This page can be customized, for example by using your site's skin template, modifying the message, etc.
    • Detailed error:
      This detailed error page contains:
      • an image,
      • the title of the WEBDEV error. At runtime, the [%TITLE%] tag is replaced with the title of the error.
      • the full error message. At runtime, the [%MSG%] tag is replaced with the title of the error.
      • the system message. At runtime, the [%SYS%] tag is replaced with the title of the error.
        This page can be customized, for example using your site's skin template, etc.
  4. Finish 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 for the current configuration: in the "Project Explorer" pane, display the "Configurations" context menu and select "Description".
  2. On the "General" tab, select the desired error page:
    Note: only static project pages are available.
  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 error customization had previously been set up via the WEBDEV administrator for this site ("Administration" tab of the WEBDEV administrator), this customization is not retained.. 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 version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 10/08/2024

Send a report | Local help