Class Reference
IRIS for UNIX 2024.1.2
|
|
Private
Storage
|
This error page will display information that is designed to make debugging an application
easier, if you deploy a CSP application then you should use the
|
|
Subclasses | |
---|---|
%CSP.LogError | %CSP.StudioTemplateError |
|
Output in HTML the error information in ErrorInfo which is the array provided byDecomposeError .
If an error occurs while processing a HyperEvent then this method is called. This method will write out javascript code that will be executed on the browser. Note that the variable 'CSPPage' refers to the 'self' of the page on which the Hyperevent was called as this may be different to the current 'self'.You could use this javascript to redirect the browser to another page:
Or you could popup an alert box with the error message in it:Write "CSPPage.window.location='/csp/samples/menu.csp';",!Write "alert('An error occurred');",!
Output the error page as HTML. This makes use of the ##class(%CSP.Utils).DisplayAllObjects() call to display as much information as possible about the state of the %request, %response, %server objects when the error occurred.