Files
comaps/base/exception.cpp
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

15 lines
385 B
C++

#include "base/exception.hpp"
RootException::RootException(char const * what, std::string const & msg) : m_msg(msg)
{
std::string asciiMsg(m_msg.size(), '?');
for (size_t i = 0; i < m_msg.size(); ++i)
{
if (static_cast<unsigned char>(m_msg[i]) < 128)
asciiMsg[i] = static_cast<char>(m_msg[i]);
}
m_whatWithAscii = std::string(what) + ", \"" + asciiMsg + "\"";
}