userver: userver/utils/exception.hpp File Reference
Loading...
Searching...
No Matches
exception.hpp File Reference

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>
+ Include dependency graph for exception.hpp:

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.