diff options
Diffstat (limited to 'Sluift/Helpers.h')
-rw-r--r-- | Sluift/Helpers.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Sluift/Helpers.h b/Sluift/Helpers.h new file mode 100644 index 0000000..d04a610 --- /dev/null +++ b/Sluift/Helpers.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2013-2014 Kevin Smith and Remko Tronçon + * Licensed under the GNU General Public License. + * See the COPYING file for more information. + */ + +#pragma once + +#include <Swiften/Base/Override.h> +#include <Swiften/Base/API.h> + +#include <string> + +namespace Swift { + class ClientError; + class ComponentError; + + template<typename T> std::string getCommonErrorString(T& error); + std::string getErrorString(const ClientError& error); + std::string getErrorString(const ComponentError& error); +} |