summaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/XML/src/DOMException.cpp
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/poco/XML/src/DOMException.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/XML/src/DOMException.cpp')
-rw-r--r--contrib/libs/poco/XML/src/DOMException.cpp210
1 files changed, 105 insertions, 105 deletions
diff --git a/contrib/libs/poco/XML/src/DOMException.cpp b/contrib/libs/poco/XML/src/DOMException.cpp
index 0b298253445..546a1e2aae6 100644
--- a/contrib/libs/poco/XML/src/DOMException.cpp
+++ b/contrib/libs/poco/XML/src/DOMException.cpp
@@ -1,107 +1,107 @@
-//
-// DOMException.cpp
-//
-// Library: XML
-// Package: DOM
-// Module: DOM
-//
-// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
-// and Contributors.
-//
-// SPDX-License-Identifier: BSL-1.0
-//
-
-
-#include "Poco/DOM/DOMException.h"
-#include <typeinfo>
-
-
-namespace Poco {
-namespace XML {
-
-
-const std::string DOMException::MESSAGES[_NUMBER_OF_MESSAGES] =
-{
- "Invalid DOM exception code",
- "Index or size is negative or greater than allowed value",
- "The specified range of text does not fit into a DOMString",
- "A node is inserted somewhere it doesn't belong",
- "A node is used in a different document than the one that created it",
- "An invalid character is specified",
- "Data is specified for a node which does not support data",
- "An attempt is made to modify an object where modifications are not allowed",
- "An attempt was made to reference a node in a context where it does not exist",
- "The implementation does not support the type of object requested",
- "An attempt is made to add an attribute that is already in use elsewhere",
- "A parameter or an operation is not supported by the underlying object",
- "An invalid or illegal string is specified",
- "An attempt is made to modify the type of the underlying object",
- "An attempt is made to create or change an object in a way which is incorrect with regard to namespaces",
- "An attempt is made to use an object that is not, or is no longer, usable"
-};
-
-
-DOMException::DOMException(unsigned short code):
- XMLException(message(code)),
- _code(code)
-{
-}
-
-
-DOMException::DOMException(const DOMException& exc):
- XMLException(exc),
- _code(exc._code)
-{
-}
-
-
-DOMException::~DOMException() noexcept
-{
-}
-
-
-DOMException& DOMException::operator = (const DOMException& exc)
-{
- if (&exc != this)
- {
- XMLException::operator = (exc);
- _code = exc._code;
- }
- return *this;
-}
-
-
+//
+// DOMException.cpp
+//
+// Library: XML
+// Package: DOM
+// Module: DOM
+//
+// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// SPDX-License-Identifier: BSL-1.0
+//
+
+
+#include "Poco/DOM/DOMException.h"
+#include <typeinfo>
+
+
+namespace Poco {
+namespace XML {
+
+
+const std::string DOMException::MESSAGES[_NUMBER_OF_MESSAGES] =
+{
+ "Invalid DOM exception code",
+ "Index or size is negative or greater than allowed value",
+ "The specified range of text does not fit into a DOMString",
+ "A node is inserted somewhere it doesn't belong",
+ "A node is used in a different document than the one that created it",
+ "An invalid character is specified",
+ "Data is specified for a node which does not support data",
+ "An attempt is made to modify an object where modifications are not allowed",
+ "An attempt was made to reference a node in a context where it does not exist",
+ "The implementation does not support the type of object requested",
+ "An attempt is made to add an attribute that is already in use elsewhere",
+ "A parameter or an operation is not supported by the underlying object",
+ "An invalid or illegal string is specified",
+ "An attempt is made to modify the type of the underlying object",
+ "An attempt is made to create or change an object in a way which is incorrect with regard to namespaces",
+ "An attempt is made to use an object that is not, or is no longer, usable"
+};
+
+
+DOMException::DOMException(unsigned short code):
+ XMLException(message(code)),
+ _code(code)
+{
+}
+
+
+DOMException::DOMException(const DOMException& exc):
+ XMLException(exc),
+ _code(exc._code)
+{
+}
+
+
+DOMException::~DOMException() noexcept
+{
+}
+
+
+DOMException& DOMException::operator = (const DOMException& exc)
+{
+ if (&exc != this)
+ {
+ XMLException::operator = (exc);
+ _code = exc._code;
+ }
+ return *this;
+}
+
+
const char* DOMException::name() const noexcept
-{
- return "DOMException";
-}
-
-
+{
+ return "DOMException";
+}
+
+
const char* DOMException::className() const noexcept
-{
- return typeid(*this).name();
-}
-
-
-Poco::Exception* DOMException::clone() const
-{
- return new DOMException(*this);
-}
-
-
-void DOMException::rethrow() const
-{
- throw *this;
-}
-
-
-const std::string& DOMException::message(unsigned short code)
-{
- if (code >= 1 && code < _NUMBER_OF_MESSAGES)
- return MESSAGES[code];
- else
- return MESSAGES[0];
-}
-
-
-} } // namespace Poco::XML
+{
+ return typeid(*this).name();
+}
+
+
+Poco::Exception* DOMException::clone() const
+{
+ return new DOMException(*this);
+}
+
+
+void DOMException::rethrow() const
+{
+ throw *this;
+}
+
+
+const std::string& DOMException::message(unsigned short code)
+{
+ if (code >= 1 && code < _NUMBER_OF_MESSAGES)
+ return MESSAGES[code];
+ else
+ return MESSAGES[0];
+}
+
+
+} } // namespace Poco::XML