summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser')
-rw-r--r--Swiften/Parser/StreamErrorParser.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Swiften/Parser/StreamErrorParser.cpp b/Swiften/Parser/StreamErrorParser.cpp
index 3d30d77..d222c40 100644
--- a/Swiften/Parser/StreamErrorParser.cpp
+++ b/Swiften/Parser/StreamErrorParser.cpp
@@ -60,12 +60,18 @@ void StreamErrorParser::handleEndElement(const String& element, const String& ns
else if(element == "not-authorized") {
getElementGeneric()->setType(StreamError::NotAuthorized);
}
+ else if(element == "not-well-formed") {
+ getElementGeneric()->setType(StreamError::NotWellFormed);
+ }
else if(element == "policy-violation") {
getElementGeneric()->setType(StreamError::PolicyViolation);
}
else if(element == "remote-connection-failed") {
getElementGeneric()->setType(StreamError::RemoteConnectionFailed);
}
+ else if(element == "reset") {
+ getElementGeneric()->setType(StreamError::Reset);
+ }
else if(element == "resource-constraint") {
getElementGeneric()->setType(StreamError::ResourceConstraint);
}
@@ -90,9 +96,6 @@ void StreamErrorParser::handleEndElement(const String& element, const String& ns
else if(element == "unsupported-version") {
getElementGeneric()->setType(StreamError::UnsupportedVersion);
}
- else if(element == "xml-not-well-formed") {
- getElementGeneric()->setType(StreamError::XMLNotWellFormed);
- }
else {
getElementGeneric()->setType(StreamError::UndefinedCondition);
}