diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-18 18:48:46 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-01-13 22:32:43 +0300 |
commit | 2615896faa646e5830abf2c269150e1165c66515 (patch) | |
tree | 7d95978ec0a83094c9462ed4e1f59d42f4ff8ddb /libxsd/libxsd/cxx/parser/exceptions.txx | |
parent | 7420f85ea19b0562ffdd8123442f32bc8bac1267 (diff) |
Switch to build2
Diffstat (limited to 'libxsd/libxsd/cxx/parser/exceptions.txx')
-rw-r--r-- | libxsd/libxsd/cxx/parser/exceptions.txx | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libxsd/libxsd/cxx/parser/exceptions.txx b/libxsd/libxsd/cxx/parser/exceptions.txx new file mode 100644 index 0000000..b23188a --- /dev/null +++ b/libxsd/libxsd/cxx/parser/exceptions.txx @@ -0,0 +1,57 @@ +// file : libxsd/cxx/parser/exceptions.txx +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +namespace xsd +{ + namespace cxx + { + namespace parser + { + // error + // + template <typename C> + error<C>:: + error (cxx::parser::severity s, + const std::basic_string<C>& id, + unsigned long line, + unsigned long column, + const std::basic_string<C>& message) + : severity_ (s), + id_ (id), + line_ (line), + column_ (column), + message_ (message) + { + } + + + // parsing + // + template <typename C> + parsing<C>:: + ~parsing () throw () + { + } + + template <typename C> + parsing<C>:: + parsing () + { + } + + template <typename C> + parsing<C>:: + parsing (const cxx::parser::diagnostics<C>& diagnostics) + : diagnostics_ (diagnostics) + { + } + + template <typename C> + const char* parsing<C>:: + what () const throw () + { + return "instance document parsing failed"; + } + } + } +} |