Better func attributes for exceptions.

This commit is contained in:
Ferdinand Majerech 2014-07-23 18:15:37 +02:00
parent 8f00c503e2
commit f5e027e9bb

View file

@ -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);
}