30 lines
783 B
C++
30 lines
783 B
C++
#pragma once
|
|
|
|
#include <stdexcept>
|
|
|
|
namespace mbgl {
|
|
namespace util {
|
|
|
|
struct Exception : std::runtime_error {
|
|
Exception(const char *msg) : std::runtime_error(msg) {}
|
|
Exception(const std::string &msg) : std::runtime_error(msg) {}
|
|
};
|
|
|
|
struct SpriteImageException : Exception {
|
|
SpriteImageException(const char *msg) : Exception(msg) {}
|
|
SpriteImageException(const std::string &msg) : Exception(msg) {}
|
|
};
|
|
|
|
struct MisuseException : Exception {
|
|
MisuseException(const char *msg) : Exception(msg) {}
|
|
MisuseException(const std::string &msg) : Exception(msg) {}
|
|
};
|
|
|
|
struct ShaderException : Exception {
|
|
ShaderException(const char *msg) : Exception(msg) {}
|
|
ShaderException(const std::string &msg) : Exception(msg) {}
|
|
};
|
|
|
|
} // namespace util
|
|
} // namespace mbgl
|