From 27d1e03d7bdf8fcfe7292c06e40bc3e2fca9158e Mon Sep 17 00:00:00 2001 From: Denis Oliver Kropp Date: Tue, 19 Oct 2010 15:56:15 +0200 Subject: pluggit --- src/Exception.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/Exception.h (limited to 'src/Exception.h') diff --git a/src/Exception.h b/src/Exception.h new file mode 100644 index 0000000..821f569 --- /dev/null +++ b/src/Exception.h @@ -0,0 +1,18 @@ +#include + +namespace PluggIt { + +class Exception +{ +public: + Exception( std::string message ); + + Exception( const char *format, ... ) D_FORMAT_PRINTF(2); + + std::string getMessage(); + + friend std::ostream &operator << (std::ostream &stream, Exception *ex); +}; + +} + -- cgit