squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
acl
SquidError.cc
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
#include "
squid.h
"
10
#include "
acl/FilledChecklist.h
"
11
#include "
acl/SquidError.h
"
12
#include "
HttpRequest.h
"
13
14
int
15
ACLSquidErrorStrategy::match
(
ACLData<MatchType>
* &data,
ACLFilledChecklist
*checklist)
16
{
17
if
(checklist->
requestErrorType
!=
ERR_MAX
)
18
return
data->
match
(checklist->
requestErrorType
);
19
else
if
(checklist->
request
)
20
return
data->
match
(checklist->
request
->
error
.
category
);
21
return
0;
22
}
23
ACLFilledChecklist
Definition:
FilledChecklist.h:33
FilledChecklist.h
ACLData< MatchType >
HttpRequest::error
Error error
the first transaction problem encountered (or falsy)
Definition:
HttpRequest.h:161
ACLFilledChecklist::request
HttpRequest * request
Definition:
FilledChecklist.h:79
ERR_MAX
@ ERR_MAX
Definition:
forward.h:88
HttpRequest.h
SquidError.h
ACLData::match
virtual bool match(M)=0
ACLSquidErrorStrategy::match
virtual int match(ACLData< MatchType > *&, ACLFilledChecklist *) override
Definition:
SquidError.cc:15
Error::category
err_type category
primary error classification (or ERR_NONE)
Definition:
Error.h:35
squid.h
ACLFilledChecklist::requestErrorType
err_type requestErrorType
Definition:
FilledChecklist.h:105
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
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
jp
pl
...
full list
FTP Package Archive