WriteError

The itp.WriteError API allows custom ASP.NET web pages to write exceptions to the output using the standard ITP/OnLine error reporting mechanism.

void WriteError (Page page,
                 Exception exception)

Parameters:

This function can be called at any point in an ASP.NET page. It will clear the output that has already been generated, generate an error page, and finalize the HTTP response so that no more output will be sent to the client. It is normally not necessary to call this function, because any exceptions unhandled by ASP.NET pages are handled by ITP/OnLine. Should it be necessary to report errors during the generation of a web page, this function provides access to the ITP/OnLine error reporting mechanism.