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
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 
virtual bool match(M)=0
HttpRequest * request
virtual int match(ACLData< MatchType > *&, ACLFilledChecklist *) override
Definition: SquidError.cc:15
err_type category
primary error classification (or ERR_NONE)
Definition: Error.h:35
Error error
the first transaction problem encountered (or falsy)
Definition: HttpRequest.h:161
@ ERR_MAX
Definition: forward.h:88

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors