| 1 | // | 
|---|
| 2 | // XMLStreamParserException.h | 
|---|
| 3 | // | 
|---|
| 4 | // Library: XML | 
|---|
| 5 | // Package: XML | 
|---|
| 6 | // Module:  XMLStreamParserException | 
|---|
| 7 | // | 
|---|
| 8 | // Definition of the XMLStreamParserException class. | 
|---|
| 9 | // | 
|---|
| 10 | // Copyright (c) 2015, Applied Informatics Software Engineering GmbH. | 
|---|
| 11 | // and Contributors. | 
|---|
| 12 | // | 
|---|
| 13 | // SPDX-License-Identifier:	BSL-1.0 | 
|---|
| 14 | // | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | #ifndef XML_XMLStreamParserException_INCLUDED | 
|---|
| 18 | #define XML_XMLStreamParserException_INCLUDED | 
|---|
| 19 |  | 
|---|
| 20 |  | 
|---|
| 21 | #include <Poco/XML/XMLException.h> | 
|---|
| 22 |  | 
|---|
| 23 |  | 
|---|
| 24 | namespace Poco { | 
|---|
| 25 | namespace XML { | 
|---|
| 26 |  | 
|---|
| 27 |  | 
|---|
| 28 | class XMLStreamParser; | 
|---|
| 29 |  | 
|---|
| 30 |  | 
|---|
| 31 | class XML_API XMLStreamParserException: public Poco::XML::XMLException | 
|---|
| 32 | { | 
|---|
| 33 | public: | 
|---|
| 34 | XMLStreamParserException(const std::string& name, Poco::UInt64 line, Poco::UInt64 column, const std::string& description); | 
|---|
| 35 | XMLStreamParserException(const XMLStreamParser&, const std::string& description); | 
|---|
| 36 | virtual ~XMLStreamParserException() throw (); | 
|---|
| 37 |  | 
|---|
| 38 | const char* name() const throw(); | 
|---|
| 39 | Poco::UInt64 line() const; | 
|---|
| 40 | Poco::UInt64 column() const; | 
|---|
| 41 | const std::string& description() const; | 
|---|
| 42 | virtual const char* what() const throw (); | 
|---|
| 43 |  | 
|---|
| 44 | private: | 
|---|
| 45 | void init(); | 
|---|
| 46 |  | 
|---|
| 47 | std::string _name; | 
|---|
| 48 | Poco::UInt64 _line; | 
|---|
| 49 | Poco::UInt64 _column; | 
|---|
| 50 | std::string _description; | 
|---|
| 51 | std::string _what; | 
|---|
| 52 | }; | 
|---|
| 53 |  | 
|---|
| 54 |  | 
|---|
| 55 | } } // namespace Poco::XML | 
|---|
| 56 |  | 
|---|
| 57 |  | 
|---|
| 58 | #endif // XML_XMLStreamParserException_INCLUDED | 
|---|
| 59 |  | 
|---|