From f5e027e9bb42e625a3d5f3c340f958a633f17e27 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Wed, 23 Jul 2014 18:15:37 +0200 Subject: [PATCH] Better func attributes for exceptions. --- source/dyaml/exception.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dyaml/exception.d b/source/dyaml/exception.d index 4013d9a..3268abc 100644 --- a/source/dyaml/exception.d +++ b/source/dyaml/exception.d @@ -21,7 +21,7 @@ class YAMLException : Exception { /// Construct a YAMLException with specified message and position where it was thrown. public this(string msg, string file = __FILE__, int line = __LINE__) - @trusted pure nothrow + @safe pure nothrow { super(msg, file, line); } @@ -74,7 +74,7 @@ abstract class MarkedYAMLException : YAMLException // Construct a MarkedYAMLException with specified problem. this(string problem, Mark problemMark, string file = __FILE__, int line = __LINE__) - @safe pure + @safe pure nothrow { super(problem ~ '\n' ~ problemMark.toString(), file, line); }