--- parser3/src/include/pa_xml_exception.h 2003/11/20 16:34:25 1.2 +++ parser3/src/include/pa_xml_exception.h 2015/10/26 01:21:57 1.11 @@ -1,7 +1,7 @@ /** @file Parser: xml exception decls. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ @@ -10,22 +10,33 @@ #ifdef XML -static const char * const IDENT_XML_EXCEPTION_H="$Date: 2003/11/20 16:34:25 $"; +#define IDENT_PA_XML_EXCEPTION_H "$Id: pa_xml_exception.h,v 1.11 2015/10/26 01:21:57 moko Exp $" + +const char* const XML_VALUE_MUST_BE_STRING = "value must be string"; +const char* const XML_DATA_MUST_BE_STRING = "data must be string"; +const char* const XML_NAMESPACEURI_MUST_BE_STRING = "namespaceURI must be string"; + +const char* const XML_QUALIFIED_NAME_MUST_BE_STRING = "qualifiedName must be string"; +const char* const XML_NC_NAME_MUST_BE_STRING = "NCName must be string"; +const char* const XML_LOCAL_NAME_MUST_BE_STRING = "localName must be string"; + +const char* const XML_INVALID_QUALIFIED_NAME = "invalid qualifiedName '%s'"; +const char* const XML_INVALID_NC_NAME = "invalid NCName '%s'"; +const char* const XML_INVALID_LOCAL_NAME = "invalid localName '%s'"; // includes #include "pa_exception.h" -#include "gdome.h" +#include "pa_request.h" // defines class XmlException: public Exception { public: - XmlException( - const String* aproblem_source, - GdomeException& exc); - + XmlException(const String* aproblem_source, const char* aproblem_comment, ...); + XmlException(const String* aproblem_source, Request& r); + XmlException(); }; #endif