stub_liberror.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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 "error/Error.h"
11 #include "sbuf/SBuf.h"
12 
13 #define STUB_API "error/liberror.la"
14 #include "tests/STUB.h"
15 
16 const char * err_type_str[ERR_MAX] = {};
17 
20 void Error::update(const Error &) STUB_NOP
22 
23 std::ostream &operator <<(std::ostream &os, const Error &) STUB_RETVAL(os)
24 std::ostream &operator <<(std::ostream &os, const ErrorDetail::Pointer &) STUB_RETVAL(os)
25 std::ostream &operator <<(std::ostream &os, const ErrorDetails &) STUB_RETVAL(os)
26 
28 
29 #include "error/SysErrorDetail.h"
31 SBuf SysErrorDetail::brief() const STUB_RETVAL(SBuf())
33 std::ostream &operator <<(std::ostream &os, ReportSysError) STUB_RETVAL(os)
34 
#define STUB_RETVAL(x)
Definition: STUB.h:42
system call failure detail based on standard errno(3)/strerror(3) APIs
Definition: SBuf.h:93
a stream manipulator for printing a system call error (if any)
const char * err_type_str[ERR_MAX]
err_type
Definition: forward.h:14
a transaction problem
Definition: Error.h:27
int verbose
Definition: find_password.c:26
std::vector< ErrorDetailPointer, PoolingAllocator< ErrorDetailPointer > > ErrorDetails
zero or more details of a single error
Definition: Error.h:20
static SBuf Brief(int errorNo)
@ ERR_MAX
Definition: forward.h:88
#define STUB_NOP
Definition: STUB.h:38
void update(const Error &)
if necessary, stores the given error information (if any)
Definition: Error.cc:51
std::ostream & operator<<(std::ostream &o, const Answer &a)
Definition: Acl.h:109
ErrorDetail::Pointer MakeNamedErrorDetail(const char *name)
Definition: Detail.cc:54

 

Introduction

Documentation

Support

Miscellaneous