X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fexceptions.h;h=7ed53d79f463031c78e9916f629f197080b26a56;hb=30654333446e3148ff35914b2fe087da0719889b;hp=ce032e1655e041375417699fab132055be08614c;hpb=5cb314df178f78c6fa7b9826c2c5a5298ec7a473;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/exceptions.h b/xmltooling/exceptions.h index ce032e1..7ed53d7 100644 --- a/xmltooling/exceptions.h +++ b/xmltooling/exceptions.h @@ -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. @@ -15,19 +15,20 @@ */ /** - * @file exceptions.h + * @file xmltooling/exceptions.h * - * Exception classes + * Exception classes. */ #ifndef __xmltooling_exceptions_h__ #define __xmltooling_exceptions_h__ +#include + #include #include #include #include -#include /** * 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;