Detail.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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{
22public:
24
25 virtual ~ErrorDetail() {}
26
29 virtual SBuf brief() const = 0;
30
33 virtual SBuf verbose(const HttpRequestPointer &) const = 0;
34};
35
39
41std::ostream &operator <<(std::ostream &os, const ErrorDetail &);
42
44std::ostream &operator <<(std::ostream &os, const ErrorDetail::Pointer &);
45
46#endif /* _SQUID_SRC_ERROR_DETAIL_H */
47
std::ostream & operator<<(std::ostream &os, const ErrorDetail &)
dump the given ErrorDetail (for debugging)
Definition: Detail.cc:35
ErrorDetail::Pointer MakeNamedErrorDetail(const char *name)
Definition: Detail.cc:54
#define RefCountable
The locking interface for use on Reference-Counted classes.
Definition: Lock.h:66
interface for supplying additional information about a transaction failure
Definition: Detail.h:21
virtual ~ErrorDetail()
Definition: Detail.h:25
virtual SBuf verbose(const HttpRequestPointer &) const =0
virtual SBuf brief() const =0
Definition: SBuf.h:94
RefCount< ErrorDetail > ErrorDetailPointer
Definition: forward.h:94

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors