$WBErrNum - error number

Availability
$WBErrNum is available for use with error template file, processed by WBSP in case of a run-time error.

Syntax
$WBErrNum
$WBErrNum[]

Returns
Error number, without any text message.

Here's an example of an error template file:

<html>
<head>
<title>Sorry!</title>
</head>
<body>
Sorry, the requested page produced the error number $wberrNum
</body>
</html>

When error occurs, instead of showing the default error report:

Error in /wbsp/basic/delete.wbsp

The following internal error has occurred:
Illegal unique identifier! Query returned more than one record!
Error Number = 5014

Please note what you were doing when this problem occurred, so we can identify and correct it. Write down the Web page you were using, any data you may have entered into a form or search box, and anything else that may help us duplicate the problem.Then contact the administrator of this service:

<webmaster@localhost>

WBSP will display following:
Sorry, the requested page produced the error number 5014