Files
MapLibreParticleLab/include/mbgl/util/error.hpp
Konstantin Käfer 214f99673f fix variable shadowing
2014-10-22 18:19:01 +02:00

20 lines
388 B
C++

#ifndef MBGL_UTIL_ERROR
#define MBGL_UTIL_ERROR
#include <stdexcept>
#include <string>
namespace mbgl {
namespace error {
struct style_parse : std::exception {
inline style_parse(size_t offset_, const char *msg_) : offset(offset_), msg(msg_) {}
inline const char* what() const noexcept { return msg.c_str(); }
const size_t offset;
const std::string msg;
};
}
}
#endif