![]() |
zeep::http::error_handler — A base class for error-handler classes.
// In header: <zeep/http/error-handler.hpp> class error_handler { public: // construct/copy/destruct ( = "error.xhtml"); (error_handler &) = ; error_handler & (error_handler &) = ; ~(); // public member functions (basic_server *); basic_server * (); basic_server * () ; (request &, , reply &); (request &, reply &); (request &, , reply &); (request &, , , reply &); };
To handle errors decently when there are multiple controllers.
error_handler
public
construct/copy/destruct( error_template = "error.xhtml");constructor
If error_template is not empty, the error handler will try to load this XHTML template using the server's template_processor. If that fails or error_template is empty, a simple stock message is returned.
(error_handler &) = ;
error_handler & (error_handler &) = ;
~();
error_handler
public member functions(basic_server * s);set the server object we're bound to
basic_server * ();get the server object we're bound to
basic_server * () ;set the server object we're bound to
(request & req, eptr, reply & reply);Create an error reply for an exception.
This function is called by server with the captured exception.
Parameters: |
|
||||||
Returns: |
Return true if the reply was created successfully |
(request & req, reply & reply);Create an error reply for the error containing a validation header.
When a authentication violation is encountered, this function is called to generate the appropriate reply.
Parameters: |
|
||||
Returns: |
Return true if the reply was created successfully |
(request & req, status, reply & reply);Create an error reply for the error.
An error should be returned with HTTP status code status. This method will create a default error page.
Parameters: |
|
||||||
Returns: |
Return true if the reply was created successfully |
(request & req, status, message, reply & reply);Create an error reply for the error with an additional message for the user.
An error should be returned with HTTP status code status and additional information message. This method will create a default error page.
Parameters: |
|
||||||||
Returns: |
Return true if the reply was created successfully |