crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Base class for all exceptions thrown by the application. More...
#include <Exception.hpp>
Construction and Destruction | |
Exception (const std::string &description) | |
Constructor for creating a new exception. More... | |
~Exception () override=default | |
Default destructor. More... | |
Getter | |
std::string_view | view () const noexcept |
Gets the description of the exception as a view to the underlying string. More... | |
Copy and Move | |
Exception (const Exception &other)=default | |
Default copy constructor. More... | |
Exception & | operator= (const Exception &other)=default |
Default copy assignment operator. More... | |
Exception (Exception &&other)=default | |
Default move constructor. More... | |
Exception & | operator= (Exception &&other)=default |
Default move assignment operator. More... | |
Base class for all exceptions thrown by the application.
Possesses a view into the string describing the exception.
Use MAIN_EXCEPTION_CLASS() for adding child classes of Main::Exception for general exceptions to another class.
Use MAIN_EXCEPTION_SUBCLASS(NAME) for adding children for specific types of exceptions to such a class.
|
inlineexplicit |
Constructor for creating a new exception.
The string will be handled by the std::runtime_error parent class.
An extra view into the string will be stored inside the class.
description | A const reference to the string describing the exception. |
|
overridedefault |
Default destructor.
|
default |
Default copy constructor.
|
default |
Default move constructor.
Default copy assignment operator.
Default move assignment operator.
|
inlinenoexcept |
Gets the description of the exception as a view to the underlying string.
Referenced by crawlservpp::Query::Container::addQuery(), crawlservpp::Query::Container::addSubSetsFromQueryOnSubSet(), crawlservpp::Module::Analyzer::Database::checkSources(), crawlservpp::Main::Database::duplicateWebsite(), crawlservpp::Query::Container::getBoolFromQuery(), crawlservpp::Query::Container::getBoolFromQueryOnSubSet(), crawlservpp::Query::Container::getBoolFromRegEx(), crawlservpp::Query::Container::getMultiFromQuery(), crawlservpp::Query::Container::getMultiFromQueryOnSubSet(), crawlservpp::Query::Container::getMultiFromRegEx(), crawlservpp::Network::Curl::getPublicIp(), crawlservpp::Query::Container::getSingleFromQuery(), crawlservpp::Query::Container::getSingleFromQueryOnSubSet(), crawlservpp::Query::Container::getSingleFromRegEx(), crawlservpp::Module::Config::loadConfig(), crawlservpp::Main::Database::moveWebsite(), crawlservpp::Module::Parser::Thread::onReset(), crawlservpp::Module::Extractor::Thread::onReset(), crawlservpp::Module::Crawler::Thread::onReset(), crawlservpp::Parsing::XML::parse(), crawlservpp::Query::Container::reserveForSubSets(), crawlservpp::Main::WebServer::sendFile(), crawlservpp::Query::Container::setSubSetsFromQuery(), and crawlservpp::Main::Server::tick().