Detail.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef _SQUID_SRC_ERROR_DETAIL_H
10 #define _SQUID_SRC_ERROR_DETAIL_H
11 
12 #include "base/Here.h"
13 #include "base/RefCount.h"
14 #include "error/forward.h"
15 #include "http/forward.h"
16 #include "mem/forward.h"
17 #include "sbuf/forward.h"
18 
21 {
22 public:
24 
25  virtual ~ErrorDetail() {}
26 
29  virtual SBuf brief() const = 0;
30 
33  virtual SBuf verbose(const HttpRequestPointer &) const = 0;
34 };
35 
39 
41 std::ostream &operator <<(std::ostream &os, const ErrorDetail &);
42 
44 std::ostream &operator <<(std::ostream &os, const ErrorDetail::Pointer &);
45 
46 #endif /* _SQUID_SRC_ERROR_DETAIL_H */
47 
Definition: SBuf.h:87
ErrorDetail::Pointer MakeNamedErrorDetail(const char *name)
Definition: Detail.cc:54
std::ostream & operator<<(std::ostream &os, const ErrorDetail &)
dump the given ErrorDetail (for debugging)
Definition: Detail.cc:35
virtual SBuf brief() const =0
virtual ~ErrorDetail()
Definition: Detail.h:25
RefCount< ErrorDetail > ErrorDetailPointer
Definition: forward.h:92
interface for supplying additional information about a transaction failure
Definition: Detail.h:21
virtual SBuf verbose(const HttpRequestPointer &) const =0

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors