Change exception parameterization to match Shib usage.
[shibboleth/cpp-xmltooling.git] / xmltooling / exceptions.cpp
index 3b37262..6002fb5 100644 (file)
@@ -232,8 +232,8 @@ string XMLToolingException::toString() const
 string XMLToolingException::toQueryString() const
 {
     const URLEncoder* enc = XMLToolingConfig::getConfig().getURLEncoder();
-    string q("type=");
-    q = q + enc->encode(getClassName()) + "&message=" + enc->encode(what());
+    string q("errorType=");
+    q = q + enc->encode(getClassName()) + "&errorText=" + enc->encode(what());
     for (map<string,string>::const_iterator i=m_params.begin(); i!=m_params.end(); i++)
         q = q + '&' + i->first + '=' + enc->encode(i->second.c_str());
     return q;