Represents an error response to the client from the server. More...
#include <WebServerControl.h>
Public Member Functions | |
| ErrorResponse (const std::string &error, const unsigned int status_code=400) | |
| unsigned int | getStatusCode () const |
| bool | hasJSON () const |
| const nlohmann::json & | getJSON () const |
| bool | hasError () const |
| const std::string & | getError () const |
Protected Member Functions | |
| void | setError (const std::string &error) |
| Set the error message. More... | |
Represents an error response to the client from the server.
Definition at line 180 of file WebServerControl.h.
| WebServerControl::ErrorResponse::ErrorResponse | ( | const std::string & | error, |
| const unsigned int | status_code = 400 |
||
| ) |
Definition at line 850 of file WebServerControl.C.
|
inherited |
Definition at line 843 of file WebServerControl.C.
Referenced by WebServerControl::addServerAction().
|
inherited |
Definition at line 835 of file WebServerControl.C.
Referenced by WebServerControl::addServerAction().
|
inlineinherited |
Definition at line 142 of file WebServerControl.h.
Referenced by WebServerControl::addServerAction().
|
inlineinherited |
Definition at line 156 of file WebServerControl.h.
Referenced by WebServerControl::addServerAction().
|
inlineinherited |
Definition at line 147 of file WebServerControl.h.
Referenced by WebServerControl::addServerAction().
|
inlineprotectedinherited |
Set the error message.
Definition at line 166 of file WebServerControl.h.
Referenced by ErrorResponse().
1.8.14