This page describes how the system handles errors. There are three internal system errors.
HTTP errors occur when a URL requests a resource that is not dynamically
created by the system (via the servlet mapping contained within the web.xml),
If not mapped then the app server treats the request as a normal web server
Java exceptions thrown by all but view related objects. The Exception
class is used to catch and display exceptions thrown by the application.
Logging also shows all exceptions thrown.
common.xml contains bean id="Default.ExceptionHandler" class="org.ibisph.mvc.ExceptionHandler"
exception handling sets some session objects that are picked up and displayed by
the MVC JSP. the exception thrown, the message.
The system handles errors in many
MVC errors - all standard HTML errors 404...500
Internal errors - caught these include catchable view errors like XML
file not found errors, null pointers - all throws that are controller and model
related - NOT contained within the actual view rendering method.
internal errors - uncaught - these include view related XSLT and XML
errors. These are not caught by the system and cause the ugly browser
HTTP Errors defined in web.xml - only applies to items not dynamically mapped/handled - static files...
|401||Unauthorized requested resource|
|403||Forbidden resource - refused|
|404||Resource not found|
|405||Unsupported method for this URL|
|406||The requested resource exists, but not in a format/type that your browser will accept.|
|407||The proxy server needs authorization before it can proceed.|
|408||Request timed out. The resource is in use or is temporarily unavailable or there is a network problem.|
|414||The requested URI (URL) is too long for the server to handle.|
|415||The server can not process the request because the request body is in an unsupported media format.|
|500||An unexpected error occurred inside the server that prevented it from fulfilling the request.|
|501||Requested function is not implemented by this application on this server.|
|502||Bad internet gateway. A server acting as a gateway or proxy did not receive a valid response from an upstream server.|
|503||The service (server) is temporarily unavailable but should be restored in the future.|
|504||A gateway timout error has occured. A server acting as a gateway or proxy did not receive a valid response in time.|
|505||The server does not support the version of the HTTP protocol used in the request.|
|java.lang.Throwable||Uncaught System Run Time Exception|