diff mde/resource/exception.d @ 15:4608be19ebe2

Use OS paths (linux only for now), merging multiple paths. Init changes regarding options. Reorganised policies.txt a little. Implemented mde.resource.paths to read config from appropriate paths (currently linux only). Changed Init to load options before all other delegates are run and set logging level from options. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 14 Mar 2008 11:39:45 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mde/resource/exception.d	Fri Mar 14 11:39:45 2008 +0000
@@ -0,0 +1,32 @@
+/// This module is not currently in use.
+module mde.resource.exception;
+
+public import mde.exception;
+
+/// Base resource exception class.
+class resourceException : mdeException {
+    static const char[] symbol;
+    static this () {	symbol = super.symbol ~ ".resource";	}
+    char[] getSymbol () {
+        return symbol;
+    }
+    
+    this (char[] msg) {
+        super(msg);
+    }
+    this () {}
+}
+
+/// Thrown when a required path cannot be resolved at program startup.
+class requiredPathException : mdeException {
+    static const char[] symbol;
+    static this () {	symbol = super.symbol ~ ".requiredPath";	}
+    char[] getSymbol () {
+        return symbol;
+    }
+    
+    this (char[] msg) {
+        super(msg);
+    }
+    this () {}
+}