a transaction problem More...
#include <Error.h>
Public Member Functions | |
Error ()=default | |
Error (const err_type c) | |
support implicit conversions More... | |
Error (const err_type c, const ErrorDetailPointer &d) | |
operator bool () const | |
void | update (const Error &) |
if necessary, stores the given error information (if any) More... | |
void | update (err_type, const ErrorDetailPointer &) |
void | update (err_type) |
void | update (const ErrorDetailPointer &detail) |
void | clear () |
switch to the default "no error information" state More... | |
Public Attributes | |
err_type | category = ERR_NONE |
primary error classification (or ERR_NONE) More... | |
ErrorDetails | details |
Detailed Description
Constructor & Destructor Documentation
◆ Error() [1/3]
|
default |
Referenced by clear().
◆ Error() [2/3]
◆ Error() [3/3]
|
inline |
Member Function Documentation
◆ clear()
|
inline |
Definition at line 53 of file Error.h.
References Error().
Referenced by ConnStateData::add(), HttpRequest::clearError(), and HttpRequest::init().
◆ operator bool()
|
inlineexplicit |
◆ update() [1/4]
void Error::update | ( | const Error & | recent | ) |
Definition at line 51 of file Error.cc.
References category, details, and update().
Referenced by Error(), ErrorState::BuildHttpReply(), HttpRequest::detailError(), ConnStateData::serveDelayedError(), ConnStateData::terminateAll(), update(), AccessLogEntry::updateError(), ConnStateData::updateError(), and ClientHttpRequest::updateError().
◆ update() [2/4]
void Error::update | ( | const ErrorDetailPointer & | detail | ) |
records an additional error detail (if any), leaving category unchanged more convenient and faster alternative to calling update(Error(ERR_NONE, d))
- Parameters
-
detail either nil or a pointer to a new or an already known detail
Definition at line 35 of file Error.cc.
References debugs, details, and ErrorDetail::equals().
◆ update() [3/4]
void Error::update | ( | err_type | recentCategory | ) |
◆ update() [4/4]
void Error::update | ( | err_type | recentCategory, |
const ErrorDetailPointer & | recentDetail | ||
) |
Member Data Documentation
◆ category
Definition at line 55 of file Error.h.
Referenced by ClientHttpRequest::~ClientHttpRequest(), operator bool(), update(), and Ftp::Server::writeErrorReply().
◆ details
ErrorDetails Error::details |
Zero or more details of a single error, in temporal order of discovery without duplicates or nil pointers. The order/timing of update() calls is used to approximate detail discovery time.
Definition at line 60 of file Error.h.
Referenced by update(), and Ftp::Server::writeErrorReply().
The documentation for this class was generated from the following files: