Package cx.ath.matthew.cgi
Class DefaultErrorHandler
- java.lang.Object
-
- cx.ath.matthew.cgi.DefaultErrorHandler
-
- All Implemented Interfaces:
CGIErrorHandler
public class DefaultErrorHandler extends java.lang.Object implements CGIErrorHandler
Interface to handle exceptions in the CGI.
-
-
Constructor Summary
Constructors Constructor Description DefaultErrorHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
print(boolean headers_sent, java.lang.Exception e)
This is called if an exception is not caught in the CGI.
-
-
-
Method Detail
-
print
public void print(boolean headers_sent, java.lang.Exception e)
This is called if an exception is not caught in the CGI. It should handle printing the error message nicely to the user, and then exit gracefully.- Specified by:
print
in interfaceCGIErrorHandler
-
-