1 // file      : xsd/cxx/parser/exceptions.txx
2 // copyright : Copyright (c) 2005-2017 Code Synthesis Tools CC
3 // license   : GNU GPL v2 + exceptions; see accompanying LICENSE file
4 
5 namespace xsd
6 {
7   namespace cxx
8   {
9     namespace parser
10     {
11       // error
12       //
13       template <typename C>
14       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)15       error (cxx::parser::severity s,
16              const std::basic_string<C>& id,
17              unsigned long line,
18              unsigned long column,
19              const std::basic_string<C>& message)
20           : severity_ (s),
21             id_ (id),
22             line_ (line),
23             column_ (column),
24             message_ (message)
25       {
26       }
27 
28 
29       // parsing
30       //
31       template <typename C>
32       parsing<C>::
~parsing()33       ~parsing () throw ()
34       {
35       }
36 
37       template <typename C>
38       parsing<C>::
parsing()39       parsing ()
40       {
41       }
42 
43       template <typename C>
44       parsing<C>::
parsing(const cxx::parser::diagnostics<C> & diagnostics)45       parsing (const cxx::parser::diagnostics<C>& diagnostics)
46           : diagnostics_ (diagnostics)
47       {
48       }
49 
50       template <typename C>
51       const char* parsing<C>::
what() const52       what () const throw ()
53       {
54         return "instance document parsing failed";
55       }
56     }
57   }
58 }
59