From e93afa5f6a505e75327722aa3fef66c00e9f544d Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Tue, 12 Feb 2013 20:09:00 +0100 Subject: Don't throw Exceptions for warnings. See issue #10 --- dmagick/Exception.d | 4 ++-- 1 file 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;"; -- cgit v1.2.3