Moved URLEncoder down to tooling lib, added exception->querystring method.
[shibboleth/xmltooling.git] / xmltooling / exceptions.h
index ce032e1..643adbe 100644 (file)
@@ -276,6 +276,14 @@ namespace xmltooling {
          */
         std::string toString() const;
 
+        /**
+         * Returns a set of query string name/value pairs, URL-encoded, representing the
+         * exception's type, message, and parameters.
+         *
+         * @return  the query string representation
+         */
+        std::string toQueryString() const;
+
     private:
         std::string m_msg;
         mutable std::string m_processedmsg;