class
#include <eckit/net/HttpHeader.h>
HttpError
Base classes
- class Exception
- General purpose exception Derive other exceptions from this class and implement then in the class that throws them.
Public types
- enum (anonymous) { OK = 200, CREATED = 201, ACCEPTED = 202, NO_CONTENT = 204, SEE_OTHER = 303, BAD_REQUEST = 400, UNAUTHORIZED = 401, NOT_FOUND = 404, NOT_IMPLEMENTED = 501, INTERNAL_SERVER_ERROR = 500 }
Public static functions
- static auto throwing() -> bool
-
static void exceptionStack(std::
ostream&, bool callStack = false)
Constructors, destructors, conversion operators
-
HttpError(int status,
const std::
string& msg = "HttpError")
Public functions
- auto status() const -> int
- auto what() const -> const char* override noexcept
- auto what(T... args) -> T
- auto retryOnServer() const -> bool virtual
- auto retryOnClient() const -> bool virtual
- auto terminateApplication() const -> bool virtual
-
auto callStack() const -> const std::
string& - auto location() const -> const CodeLocation&
-
void dumpStackTrace(std::
ostream& = std:: cout)
Function documentation
static bool eckit:: HttpError:: throwing()
#include <eckit/exception/Exceptions.h>
static void eckit:: HttpError:: exceptionStack(std:: ostream&,
bool callStack = false)
#include <eckit/exception/Exceptions.h>
const char* eckit:: HttpError:: what() const override noexcept
#include <eckit/exception/Exceptions.h>
bool eckit:: HttpError:: retryOnServer() const virtual
#include <eckit/exception/Exceptions.h>
bool eckit:: HttpError:: retryOnClient() const virtual
#include <eckit/exception/Exceptions.h>
bool eckit:: HttpError:: terminateApplication() const virtual
#include <eckit/exception/Exceptions.h>
const std:: string& eckit:: HttpError:: callStack() const
#include <eckit/exception/Exceptions.h>
const CodeLocation& eckit:: HttpError:: location() const
#include <eckit/exception/Exceptions.h>
void eckit:: HttpError:: dumpStackTrace(std:: ostream& = std:: cout)
#include <eckit/exception/Exceptions.h>