details an error by tying it to a uniquely named circumstance More...

Inheritance diagram for NamedErrorDetail:
Collaboration diagram for NamedErrorDetail:

Public Types

using Pointer = ErrorDetailPointer
 

Public Member Functions

 NamedErrorDetail (const char *aName)
 
SBuf brief () const override
 
SBuf verbose (const HttpRequestPointer &) const override
 
bool equals (const ErrorDetail &other) const
 

Private Attributes

SBuf name
 distinguishes us from all other NamedErrorDetail objects More...
 

Detailed Description

Definition at line 16 of file Detail.cc.

Member Typedef Documentation

◆ Pointer

Definition at line 23 of file Detail.h.

Constructor & Destructor Documentation

◆ NamedErrorDetail()

NamedErrorDetail::NamedErrorDetail ( const char *  aName)
inlineexplicit
Parameters
aNamemust not contain characters that require quoting in access logs or HTML

Definition at line 21 of file Detail.cc.

Member Function Documentation

◆ brief()

SBuf NamedErrorDetail::brief ( ) const
inlineoverridevirtual
Returns
a single "token" summarizing available details suitable as an access.log field and similar output processed by programs

Implements ErrorDetail.

Definition at line 24 of file Detail.cc.

References name.

◆ equals()

bool ErrorDetail::equals ( const ErrorDetail other) const
inlineinherited

Definition at line 44 of file Detail.h.

Referenced by Error::update().

◆ verbose()

SBuf NamedErrorDetail::verbose ( const HttpRequestPointer ) const
inlineoverridevirtual
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 25 of file Detail.cc.

References name.

Member Data Documentation

◆ name

SBuf NamedErrorDetail::name
private

Definition at line 29 of file Detail.cc.

Referenced by brief(), and verbose().


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors