12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef BOOST_LOCALE_ENCODING_ERRORS_HPP_INCLUDED
- #define BOOST_LOCALE_ENCODING_ERRORS_HPP_INCLUDED
- #include <boost/locale/config.hpp>
- #include <stdexcept>
- #include <string>
- #ifdef BOOST_MSVC
- # pragma warning(push)
- # pragma warning(disable : 4275 4251 4231 4660)
- #endif
- namespace boost { namespace locale { namespace conv {
-
-
-
-
- class BOOST_SYMBOL_VISIBLE conversion_error : public std::runtime_error {
- public:
- conversion_error() : std::runtime_error("Conversion failed") {}
- };
-
-
- class BOOST_SYMBOL_VISIBLE invalid_charset_error : public std::runtime_error {
- public:
-
- invalid_charset_error(const std::string& charset) :
- std::runtime_error("Invalid or unsupported charset: " + charset)
- {}
- };
-
- enum method_type {
- skip = 0,
- stop = 1,
- default_method = skip
- };
-
- }}}
- #ifdef BOOST_MSVC
- # pragma warning(pop)
- #endif
- #endif
|