summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a906f5)
raw | patch | inline | side by side (parent: 7a906f5)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 17 Nov 2007 23:58:42 +0000 (23:58 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 17 Nov 2007 23:58:42 +0000 (23:58 +0000) |
src/2geom/exception.h | patch | blob | history |
diff --git a/src/2geom/exception.h b/src/2geom/exception.h
index 1a031cab9515d08c0eb0321c49f32f5f4c31cab2..0791c85475f67f120841add7ebe1abfa18652bab 100644 (file)
--- a/src/2geom/exception.h
+++ b/src/2geom/exception.h
// Base exception class, all 2geom exceptions should be derrived from this one.
class Exception : public std::exception {
public:
- Exception(const char * message, const char *file, const int line)
- {
+ Exception(const char * message, const char *file, const int line) {
std::ostringstream os;
os << "lib2geom exception: " << message << " (" << file << ":" << line << ")";
msgstr = os.str();
virtual ~Exception() throw() {} // necessary to destroy the string object!!!
- virtual const char* what() const throw (){
+ virtual const char* what() const throw () {
return msgstr.c_str();
}
protected: