Reducing header overuse, non-inlining selected methods (CPPOST-35).
[shibboleth/cpp-xmltooling.git] / xmltooling / exceptions.h
index ce032e1..7ed53d7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2007 Internet2
+ *  Copyright 2001-2009 Internet2
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 
 /**
- * @file exceptions.h
+ * @file xmltooling/exceptions.h
  * 
- * Exception classes
+ * Exception classes.
  */
  
 #ifndef __xmltooling_exceptions_h__
 #define __xmltooling_exceptions_h__
 
+#include <xmltooling/base.h>
+
 #include <map>
 #include <string>
 #include <vector>
 #include <iostream>
-#include <xmltooling/base.h>
 
 /**
  * Declares a derived exception class
@@ -276,6 +277,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;