$WBERR is available for use with all WBSP commands.
errnum - error number in range from 6000 to 65535
errmsg - optional parameter containing textual description of an error. It should not be omitted if custom error message is not defined in ErrorMessages section of the current WBSP file or in include files.
When processing this function WhizBase will generate an error with specified number, and process it as any other error (stop the page processing and return an error report, or perform an error redirection).
After running this example (together with titleslist.wbsp), any access to this file from IP address other than 127.0.0.1 will generate an error message:
Sorry!, you do not have the access rights!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@officeserver>
Error Number = 6001