summaryrefslogtreecommitdiff
path: root/src/main/exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/exceptions.h')
-rw-r--r--src/main/exceptions.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/main/exceptions.h b/src/main/exceptions.h
index 2bf40f0..521620e 100644
--- a/src/main/exceptions.h
+++ b/src/main/exceptions.h
@@ -17,7 +17,7 @@ namespace vhc {
* Pour avoir une representation convenable de cette exception, appeller la methode <code>toString()</code>. */
class Exception: public Printable {
-private:
+protected:
/** Message d'erreur de cette exception. */
std::string message;
@@ -67,6 +67,22 @@ public:
virtual std::string getExceptionType() const;
};
+class IOException: public Exception {
+public:
+ IOException();
+ IOException(std::string message);
+
+ virtual std::string getExceptionType() const;
+};
+
+class ReadException: public Exception {
+public:
+ ReadException();
+ ReadException(std::string message);
+
+ virtual std::string getExceptionType() const;
+ void addReadExceptionMessage(std::string mess);
+};
}