summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wey2013-02-12 20:09:00 +0100
committerMike Wey2013-02-12 20:09:00 +0100
commite93afa5f6a505e75327722aa3fef66c00e9f544d (patch)
tree1b0d64de9974e3144186d67b4d1b0e9e9060c48d
parent7968aa142fb8c2c4494382726a3fdb784e0b467f (diff)
Don't throw Exceptions for warnings. See issue #10
-rw-r--r--dmagick/Exception.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/dmagick/Exception.d b/dmagick/Exception.d
index 232376f..af3011f 100644
--- a/dmagick/Exception.d
+++ b/dmagick/Exception.d
@@ -65,11 +65,11 @@ class DMagickException : Exception
foreach ( severity; severities )
{
+ //TODO: Warnings?
exceptions ~=
- "case ExceptionType."~ severity ~"Warning:
+ "case ExceptionType."~ severity ~"Error:
throw new "~ severity ~"Exception(reason, description, file, line);
break;
- case ExceptionType."~ severity ~"Error:
case ExceptionType."~ severity ~"FatalError:
throw new "~ severity ~"Error(reason, description, file, line);
break;";