Occurs when the ReportError method is called. It can be used to alert you when something goes wrong during processing.
psPage object
Argument |
Description |
---|---|
location |
String for objectName.methodName passed to ReportError |
cause |
String for the error cause |
message |
String for the system error message |
Boolean. If true is returned, the error is added to the error list. If false is returned, the error is not added to the list. The error list can be used to provide application-specific error processing.
The arguments are those passed to ReportError. Use this event instead of the psDocument.Write method to report errors that occur before generation.
The following table gives the string values that can be passed in the cause and message arguments:
Cause |
Object (method) |
Meaning |
Message string |
---|---|---|---|
Component call failed |
Various (TestCompError) |
An EAServer method call failed |
Returned message |
Could not create component |
PSJaguarObjectClass (CreateComponent) |
java.CreateComponentfailed for declarative EAServer object |
Returned message |
Restore context failed |
PSWebDataWindow Class(BindToInput) |
Restoring the context through SetAction call failed |
Returned code |
Create failed |
PSWebDataWindow Class(loadDWObject) |
The source for a DataWindow definition failed to compile |
Compile error |
Source not found |
PSWebDataWindow Class(loadDWObject) |
The source for a DataWindow definition could not be found |
Specified URL |
SetDWObject failed |
PSWebDataWindow Class(loadDWObject) |
The call to SetDWObject failed |
Error return code, specified PBL, and DW name |
Configuring database parms failed |
PSWebDataWindow Class(connectTo Component) |
The operation defined in the location parameter failed |
Error return value |
Operation failed |
PSWebDataWindow Class(connectTo Component) |
The operation defined in the location parameter failed |
Error return value |
DB error |
PSWebDataWindow Class (triggerOnDBError) |
A database error occurred |
SQLDB code and SQLERRTEXT |
DB error is passed for the cause argument only if you do not set the return on the OnDBError event to 1.