1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <string> 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); }; }