From 2615896faa646e5830abf2c269150e1165c66515 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 18 Dec 2020 18:48:46 +0300 Subject: Switch to build2 --- libxsd/libxsd/cxx/parser/exceptions.txx | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 libxsd/libxsd/cxx/parser/exceptions.txx (limited to 'libxsd/libxsd/cxx/parser/exceptions.txx') 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 + error:: + error (cxx::parser::severity s, + const std::basic_string& id, + unsigned long line, + unsigned long column, + const std::basic_string& message) + : severity_ (s), + id_ (id), + line_ (line), + column_ (column), + message_ (message) + { + } + + + // parsing + // + template + parsing:: + ~parsing () throw () + { + } + + template + parsing:: + parsing () + { + } + + template + parsing:: + parsing (const cxx::parser::diagnostics& diagnostics) + : diagnostics_ (diagnostics) + { + } + + template + const char* parsing:: + what () const throw () + { + return "instance document parsing failed"; + } + } + } +} -- cgit v1.1