a transaction problem More...
#include <Error.h>
![Collaboration graph](classError__coll__graph.png)
Public Member Functions | |
Error ()=default | |
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/2]
|
default |
Referenced by clear().
◆ Error() [2/2]
|
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, and details.
Referenced by ErrorState::BuildHttpReply(), HttpRequest::detailError(), Error(), ConnStateData::serveDelayedError(), ConnStateData::terminateAll(), update(), ClientHttpRequest::updateError(), AccessLogEntry::updateError(), and ConnStateData::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 operator bool(), update(), Ftp::Server::writeErrorReply(), and ClientHttpRequest::~ClientHttpRequest().
◆ 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:
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products