This is the basic handler for exceptions. It allows to generate exception reports.
This method can be invoked in order to handle an exception and produce an exception report. It starts by logging the error to the default log. Then the appropriate XML encoder is fetched (the
_getEncoder()method has to be overridden by the subclass). Finally, the exception report itself is encoded and the appropriate HTTP status code determined. The method returns a
Responseobject containing this information.
Base class for all EOxServer Handler Implementations.
There are two private methods that have to be overridden by child classes.
Abstract method which must be overridden by child classes to provide specific exception reports. If the exception report cannot be generated in this specific handler, the exception should be re-raised. This is also the default behaviour.
Abstract method which must be overridden to provide the specific request handling logic. Should not be invoked from external code, use the
handle()method instead. It expects an
reqas input and should return a
Responseobject containing the response to the request. The default method does not do anything.