eckit::HttpError class

Base classes

class Exception
Base class for all ECMWF exceptions. All exception types shall inherit from this class, either directly or indirectly.

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&
auto dumpStackTrace(std::ostream& = std::cout) -> std::ostream&

Function documentation

static bool eckit::HttpError::throwing()

static void eckit::HttpError::exceptionStack(std::ostream&, bool callStack = false)

const char* eckit::HttpError::what() const override noexcept

bool eckit::HttpError::retryOnServer() const virtual

bool eckit::HttpError::retryOnClient() const virtual

bool eckit::HttpError::terminateApplication() const virtual

const std::string& eckit::HttpError::callStack() const

const CodeLocation& eckit::HttpError::location() const

This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.