summaryrefslogtreecommitdiff
path: root/project2/exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/exceptions.h')
-rw-r--r--project2/exceptions.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/project2/exceptions.h b/project2/exceptions.h
new file mode 100644
index 0000000..84c8c19
--- /dev/null
+++ b/project2/exceptions.h
@@ -0,0 +1,16 @@
+#ifndef EXCEPTION_H
+#define EXCEPTION_H
+
+#include <stdexcept>
+
+class UriElementOutOfRange : public std::exception { };
+class ParamNotFound : public std::exception { };
+class NotSupported : public std::runtime_error {
+ public:
+ NotSupported(const std::string & what);
+};
+class FileNotReadable : public std::exception { };
+class FileNotWritable : public std::exception { };
+
+#endif
+