callback_t m_callback;
};
+class SourceLocation; // Exception.h
+
/**
* Wraps GError. Where a GError** is expected, simply pass
* a GErrorCXX instance.
* always throws an exception, including information from GError if available:
* <action>: <error message>|failure
*/
- void throwError(const std::string &action);
- static void throwError(const std::string &action, const GError *err);
+ void throwError(const SourceLocation &where, const std::string &action);
+ static void throwError(const SourceLocation &where, const std::string &action, const GError *err);
};
template<class T> void NoopDestructor(T *) {}