Squid Web Cache master
Loading...
Searching...
No Matches
stub_liberror.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 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
16const char * err_type_str[ERR_MAX] = {};
17
20void Error::update(const Error &) STUB_NOP
22
23std::ostream &operator <<(std::ostream &os, const Error &) STUB_RETVAL(os)
24std::ostream &operator <<(std::ostream &os, const ErrorDetail::Pointer &) STUB_RETVAL(os)
25std::ostream &operator <<(std::ostream &os, const ErrorDetails &) STUB_RETVAL(os)
26
28
29#include "error/SysErrorDetail.h"
31SBuf SysErrorDetail::brief() const STUB_RETVAL(SBuf())
32SBuf SysErrorDetail::verbose(const HttpRequestPointer &) const STUB_RETVAL(SBuf())
33std::ostream &operator <<(std::ostream &os, ReportSysError) STUB_RETVAL(os)
34
ErrorDetail::Pointer MakeNamedErrorDetail(const char *name)
Definition Detail.cc:54
std::vector< ErrorDetailPointer, PoolingAllocator< ErrorDetailPointer > > ErrorDetails
zero or more details of a single error
Definition Error.h:20
static std::ostream & operator<<(std::ostream &os, const acl_httpstatus_data *status)
reports acl_httpstatus_data using squid.conf http_status ACL value format
Definition HttpStatus.cc:67
#define STUB_NOP
Definition STUB.h:38
#define STUB_RETVAL(x)
Definition STUB.h:42
a transaction problem
Definition Error.h:27
void update(const Error &)
if necessary, stores the given error information (if any)
Definition Error.cc:51
a stream manipulator for printing a system call error (if any)
Definition SBuf.h:94
system call failure detail based on standard errno(3)/strerror(3) APIs
static SBuf Brief(int errorNo)
err_type
Definition forward.h:14
@ ERR_MAX
Definition forward.h:88
STL namespace.
const char * err_type_str[ERR_MAX]