system call failure detail based on standard errno(3)/strerror(3) APIs More...
#include <SysErrorDetail.h>
Public Types | |
using | Pointer = ErrorDetailPointer |
Public Member Functions | |
SBuf | brief () const override |
SBuf | verbose (const HttpRequestPointer &) const override |
bool | equals (const ErrorDetail &other) const |
Static Public Member Functions | |
static ErrorDetail::Pointer | NewIfAny (const int errorNo) |
static SBuf | Brief (int errorNo) |
Private Member Functions | |
MEMPROXY_CLASS (SysErrorDetail) | |
SysErrorDetail (const int anErrorNo) | |
Private Attributes | |
int | errorNo |
errno(3) set by the last failed system call or equivalent More... | |
Detailed Description
Definition at line 16 of file SysErrorDetail.h.
Member Typedef Documentation
◆ Pointer
|
inherited |
Constructor & Destructor Documentation
◆ SysErrorDetail()
|
inlineexplicitprivate |
Definition at line 37 of file SysErrorDetail.h.
Referenced by Brief(), and NewIfAny().
Member Function Documentation
◆ brief()
|
overridevirtual |
- Returns
- a single "token" summarizing available details suitable as an access.log field and similar output processed by programs
Implements ErrorDetail.
Definition at line 21 of file SysErrorDetail.cc.
◆ Brief()
- Returns
- a single "token" summarizing available details suitable as an access.log field and similar output processed by programs
Definition at line 15 of file SysErrorDetail.cc.
References errorNo, and SysErrorDetail().
Referenced by Security::ErrorDetail::brief().
◆ equals()
|
inlineinherited |
Definition at line 44 of file Detail.h.
Referenced by Error::update().
◆ MEMPROXY_CLASS()
|
private |
◆ NewIfAny()
|
inlinestatic |
- Returns
- a pointer to a SysErrorDetail instance (or nil for lost errnos)
Definition at line 22 of file SysErrorDetail.h.
References errorNo, and SysErrorDetail().
Referenced by ErrorState::BuildHttpReply(), Server::clientWriteDone(), Server::doClientRead(), Ftp::Client::failed(), and Ftp::Relay::failedErrorMessage().
◆ verbose()
|
overridevirtual |
- Returns
- all available details; may be customized for the given request suitable for error pages and other output meant for human consumption
Implements ErrorDetail.
Definition at line 27 of file SysErrorDetail.cc.
Member Data Documentation
◆ errorNo
|
private |
Definition at line 39 of file SysErrorDetail.h.
Referenced by Brief(), brief(), NewIfAny(), and verbose().
The documentation for this class was generated from the following files:
- src/error/SysErrorDetail.h
- src/error/SysErrorDetail.cc
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