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 SysErrorDetail(), and errorNo.
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 SysErrorDetail(), and errorNo.
Referenced by ErrorState::BuildHttpReply(), 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