![]() |
MantisBase v0.4.9
|
Application exception carrying an HTTP status code and messages. More...
#include <exceptions.h>


Public Member Functions | |
| MbException (int _code, std::string _msg) | |
| MbException (int _code, std::string _msg, std::string _desc) | |
| const char * | what () const noexcept override |
| const char * | desc () const noexcept |
| int | code () const noexcept |
Application exception carrying an HTTP status code and messages.
Thrown by entity, file, and validation layers; caught by route handlers and converted into JSON error responses.
| mb::MbException::MbException | ( | int | _code, |
| std::string | _msg ) |
| _code | HTTP-style status code (e.g. 400, 404). |
| _msg | The exception description message to show |
| mb::MbException::MbException | ( | int | _code, |
| std::string | _msg, | ||
| std::string | _desc ) |
| _code | HTTP-style status code (e.g. 400, 404). |
| _msg | The exception description message to show |
| _desc | Optional longer description for logs or API error detail. |
|
nodiscardnoexcept |
HTTP-style status code associated with this error.
|
nodiscardnoexcept |
Extended description; empty string when not provided.
|
nodiscardoverridenoexcept |