diff options
Diffstat (limited to 'Swiften/Serializer/StreamErrorSerializer.cpp')
| -rw-r--r-- | Swiften/Serializer/StreamErrorSerializer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Serializer/StreamErrorSerializer.cpp b/Swiften/Serializer/StreamErrorSerializer.cpp index 66a71ca..684e8fe 100644 --- a/Swiften/Serializer/StreamErrorSerializer.cpp +++ b/Swiften/Serializer/StreamErrorSerializer.cpp @@ -24,32 +24,32 @@ SafeByteArray StreamErrorSerializer::serialize(std::shared_ptr<ToplevelElement> case StreamError::BadFormat: typeTag = "bad-format"; break; case StreamError::BadNamespacePrefix: typeTag = "bad-namespace-prefix"; break; case StreamError::Conflict: typeTag = "conflict"; break; case StreamError::ConnectionTimeout: typeTag = "connection-timeout"; break; case StreamError::HostGone: typeTag = "host-gone"; break; case StreamError::HostUnknown: typeTag = "host-unknown"; break; case StreamError::ImproperAddressing: typeTag = "improper-addressing"; break; case StreamError::InternalServerError: typeTag = "internal-server-error"; break; case StreamError::InvalidFrom: typeTag = "invalid-from"; break; - case StreamError::InvalidID: typeTag = "invalid-id"; break; case StreamError::InvalidNamespace: typeTag = "invalid-namespace"; break; case StreamError::InvalidXML: typeTag = "invalid-xml"; break; case StreamError::NotAuthorized: typeTag = "not-authorized"; break; case StreamError::NotWellFormed: typeTag = "not-well-formed"; break; case StreamError::PolicyViolation: typeTag = "policy-violation"; break; case StreamError::RemoteConnectionFailed: typeTag = "remote-connection-failed"; break; case StreamError::Reset: typeTag = "reset"; break; case StreamError::ResourceConstraint: typeTag = "resource-constraint"; break; case StreamError::RestrictedXML: typeTag = "restricted-xml"; break; case StreamError::SeeOtherHost: typeTag = "see-other-host"; break; case StreamError::SystemShutdown: typeTag = "system-shutdown"; break; case StreamError::UndefinedCondition: typeTag = "undefined-condition"; break; case StreamError::UnsupportedEncoding: typeTag = "unsupported-encoding"; break; + case StreamError::UnsupportedFeature: typeTag = "unsupported-feature"; break; case StreamError::UnsupportedStanzaType: typeTag = "unsupported-stanza-type"; break; case StreamError::UnsupportedVersion: typeTag = "unsupported-version"; break; } errorElement.addNode(std::make_shared<XMLElement>(typeTag, "urn:ietf:params:xml:ns:xmpp-streams")); if (!error->getText().empty()) { errorElement.addNode(std::make_shared<XMLElement>("text", "urn:ietf:params:xml:ns:xmpp-streams", error->getText())); } |
Swift