userver: userver/utils/exception.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
exception.hpp File Reference

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

Logs error_message and throws an exception ith that message.

Definition in file exception.hpp.

Go to the source code of this file.

#include <stdexcept>
#include <string>
#include <userver/logging/log.hpp>
+ This graph shows which files directly or indirectly include 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.