|
| | WebviewRestException (WebReply::Code code, const char *format,...) |
| | Constructor. More...
|
| |
| template<typename T , typename = std::enable_if_t<std::is_class<T>::value>> |
| | WebviewRestException (WebReply::Code code, const T &o, bool pretty=false) |
| | Constructor. More...
|
| |
| WebReply::Code | code () |
| | Get HTTP response code. More...
|
| |
| const std::string & | content_type () const |
| | Get content type of response. More...
|
| |
| | Exception (const char *format,...) throw () |
| | Constructor. More...
|
| |
| | Exception (int errnoval, const char *format,...) throw () |
| | Constructor. More...
|
| |
| | Exception (const Exception &exc) throw () |
| | Copy constructor. More...
|
| |
| virtual | ~Exception () throw () |
| | Destructor. More...
|
| |
| virtual void | raise () |
| | This can be used to throw this exception. More...
|
| |
| void | prepend (const char *format,...) throw () |
| | Prepend messages to the message list. More...
|
| |
| void | append (const char *format,...) throw () |
| | Append messages to the message list. More...
|
| |
| void | append_va (const char *format, va_list va) throw () |
| | Append messages to the message list. More...
|
| |
| void | append (const Exception &e) throw () |
| | Append message that are from another Exception. More...
|
| |
| void | print_trace () throw () |
| | Prints trace to stderr. More...
|
| |
| void | print_backtrace () const throw () |
| | Prints a backtrace. More...
|
| |
| char * | generate_backtrace () const throw () |
| | Generate backtrace string. More...
|
| |
| int | get_errno () throw () |
| | Get errno. More...
|
| |
| void | set_type_id (const char *id) |
| | Set exception type ID. More...
|
| |
| const char * | type_id () const |
| | Get type ID. More...
|
| |
| virtual const char * | what () const throw () |
| | Get primary string. More...
|
| |
| virtual const char * | what_no_backtrace () const throw () |
| | Get primary string (does not implicitly print the back trace). More...
|
| |
| Exception & | operator= (const Exception &exc) throw () |
| | Assign an Exception. More...
|
| |
| iterator | begin () throw () |
| | Get iterator for messages. More...
|
| |
| iterator | end () throw () |
| | Get end iterator for messages. More...
|
| |
REST processing exception.
Use to indicate failure with more specific response. The HTTP code will be used for the static response with the formatted error message.
- Author
- Tim Niemueller
Definition at line 75 of file rest_api.h.