/*
- * 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
*/
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;