Consultor Eletrônico



Kbase P11509: How to customize error messages without running internal command on messenger
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/2/2007
Status: Verified

GOAL:

How to customize error messages without running internal command on messenger

FACT(s) (Environment):

OpenEdge 10.x
WebSpeed 3.1x

FIX:

1. Create a file called wsCusErr.txt and put it in your Work dir.

2. Edit the file in the following manner:
Every error has the following format:

[error number] [error type]
[message or url]

Where
[error number] is the number of the error, or 0.
0 = catch-all (if no other message is caught, this will be)
[error type] is 0, 1, or 2.
0 = off
1 = custom message
2 = redirect to url

Examples:
To catch error 8239 and put custom text when the error occurs:

8239 1
Name Server is not responding. Please contact administrator.

To do the same, but redirect any other message:

8239 1
Name Server is not responding. Please contact administrator.
0 2
http://www.progress.com

3. If you are using cgiip messenger restart your web server to pick up the changes in the file (using wsisa.dll or wsnsa.dll, you don't have to restart your web server)