#include "squid.h"
#include "base/TextException.h"
#include "sbuf/SBuf.h"
#include <iostream>
#include <sstream>
#include <unordered_map>
![](TextException_8cc__incl.png)
Go to the source code of this file.
Typedefs | |
typedef std::runtime_error | WhatString |
a standard CoW string; avoids noise and circular dependencies of SBuf More... | |
typedef std::unordered_multimap< const void *, WhatString > | WhatStrings |
a collection of strings indexed by pointers to their creator objects More... | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const TextException &ex) |
efficiently prints TextException More... | |
static std::ostream & | CurrentException_ (std::ostream &os) |
prints the current exception (which presence has been verified by the caller) More... | |
std::ostream & | CurrentException (std::ostream &os) |
prints active (i.e., thrown but not yet handled) exception More... | |
std::ostream & | CurrentExceptionExtra (std::ostream &os) |
Variables | |
static WhatStrings * | WhatStrings_ = nullptr |
requested what() strings of alive TextException objects More... | |
Typedef Documentation
◆ WhatString
typedef std::runtime_error WhatString |
Definition at line 18 of file TextException.cc.
◆ WhatStrings
typedef std::unordered_multimap<const void*, WhatString> WhatStrings |
Definition at line 21 of file TextException.cc.
Function Documentation
◆ CurrentException()
std::ostream& CurrentException | ( | std::ostream & | os | ) |
Definition at line 88 of file TextException.cc.
References CurrentException_().
Referenced by Comm::TcpAcceptor::acceptOne(), FwdState::advanceDestination(), TunnelStateData::advanceDestination(), StoreEntry::checkDisk(), Rock::IoState::close(), ConfigurationFailureMessage(), HttpStateData::decodeAndWriteReplyBody(), MemStore::get(), Security::KeyData::loadCertificates(), main(), mimeInit(), ACLRegexData::parse(), AnyP::Uri::parse(), Http::StatusLine::parse(), Ssl::ErrorDetailFile::parse(), store_client::parseHttpHeadersFromDisk(), parseOneConfigFile(), Ssl::CertValidationMsg::parseResponse(), ConnStateData::parseTlsHandshake(), ErrorPage::BuildErrorPrinter::print(), processNewRequest(), Ssl::readCertAndPrivateKeyFromMemory(), store_client::readHeader(), Ipc::Port::receiveOrIgnore(), setTraceability(), SquidMainSafe(), CacheManager::start(), storeRebuildParseEntry(), Store::Controller::syncCollapsed(), Store::Controller::updateOnNotModified(), and wccp2HandleUdp().
◆ CurrentException_()
|
static |
Definition at line 70 of file TextException.cc.
References TextException::what().
Referenced by CurrentException(), and CurrentExceptionExtra().
◆ CurrentExceptionExtra()
std::ostream& CurrentExceptionExtra | ( | std::ostream & | ) |
If there is an active (i.e., thrown but not yet handled) exception, reports it on a dedicated DebugExtra line. Otherwise, does nothing.
Definition at line 99 of file TextException.cc.
References CurrentException_(), and Debug::Extra().
Referenced by OnTerminate().
◆ operator<<()
std::ostream& operator<< | ( | std::ostream & | os, |
const TextException & | ex | ||
) |
Definition at line 62 of file TextException.cc.
References TextException::print().
Variable Documentation
◆ WhatStrings_
|
static |
Definition at line 24 of file TextException.cc.
Referenced by TextException::what(), and TextException::~TextException().
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
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products