aboutsummaryrefslogtreecommitdiff
path: root/src/include/diagnostics.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/diagnostics.H')
-rw-r--r--src/include/diagnostics.H8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/diagnostics.H b/src/include/diagnostics.H
index 8f877e2f..9cb0fce1 100644
--- a/src/include/diagnostics.H
+++ b/src/include/diagnostics.H
@@ -33,6 +33,7 @@
#ifndef OPENAXIOM_DIAGNOSTICS_included
#define OPENAXIOM_DIAGNOSTICS_included
+#include <string>
#include <iostream>
namespace OpenAxiom {
@@ -49,6 +50,13 @@ namespace OpenAxiom {
std::ostream* out;
std::ostream* err;
};
+
+ struct BasicError {
+ explicit BasicError(const std::string& s) : msg(s) { }
+ const std::string& message() const { return msg; }
+ protected:
+ std::string msg;
+ };
}
}