aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/include/G3D/FileNotFound.h
diff options
context:
space:
mode:
Diffstat (limited to 'dep/g3dlite/include/G3D/FileNotFound.h')
-rw-r--r--dep/g3dlite/include/G3D/FileNotFound.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/dep/g3dlite/include/G3D/FileNotFound.h b/dep/g3dlite/include/G3D/FileNotFound.h
new file mode 100644
index 00000000000..dc756f329fb
--- /dev/null
+++ b/dep/g3dlite/include/G3D/FileNotFound.h
@@ -0,0 +1,32 @@
+/**
+ \file FileNotFound.h
+
+ \maintainer Morgan McGuire, http://graphics.cs.williams.edu
+ \created 2011-12-31
+ \edited 2011-12-31
+ */
+#ifndef G3D_FileNotFound_h
+#define G3D_FileNotFound_h
+
+#include "G3D/platform.h"
+#include <string>
+
+namespace G3D {
+
+/** Thrown by various file opening routines if the file is not found.
+
+ \sa ParseError, System::findDataFile
+*/
+class FileNotFound {
+public:
+ std::string filename;
+ std::string message;
+
+ FileNotFound() {}
+ FileNotFound(const std::string& f, const std::string& m) : filename(f), message(m) {}
+ virtual ~FileNotFound(){};
+};
+
+} // G3D
+
+#endif