]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/except.h
Move files to prepare for assimilation into core
[libs/core.git] / source / io / except.h
diff --git a/source/io/except.h b/source/io/except.h
new file mode 100644 (file)
index 0000000..5770f64
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef MSP_IO_EXCEPT_H_
+#define MSP_IO_EXCEPT_H_
+
+#include <msp/core/except.h>
+
+namespace Msp {
+namespace IO {
+
+class FileNotFound: public Exception
+{
+public:
+       FileNotFound(const std::string &w_, const std::string &f): Exception(w_), filename(f) { }
+       const std::string &get_filename() { return filename; }
+       ~FileNotFound() throw() { }
+private:
+       std::string filename;
+};
+
+} // namespace IO
+} // namespace Msp
+
+#endif