userver: userver/utils/exception.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
exception.hpp File Reference

Logs error_message and throws an exception ith that message. More...

#include <stdexcept>
#include <string>
#include <userver/logging/log.hpp>
+ Include dependency graph for exception.hpp:

Go to the source code of this file.

Namespaces

namespace  utils
 Utilities.
 

Functions

template<typename T = std::runtime_error>
void utils::LogErrorAndThrow (const std::string &error_message)
 Logs error_message and throws an exception ith that message.
 

Detailed Description

Logs error_message and throws an exception ith that message.

Definition in file exception.hpp.