Lines Matching refs:enforce
3157 import std.exception : enforce;
3164 enforce(str.length >= 15, new DateTimeException(format("Invalid ISO String: %s", isoString)));
3167 enforce(t != -1, new DateTimeException(format("Invalid ISO String: %s", isoString)));
3258 import std.exception : enforce;
3265 enforce(str.length >= 15, new DateTimeException(format("Invalid ISO Extended String: %s", isoExtString)));
3268 enforce(t != -1, new DateTimeException(format("Invalid ISO Extended String: %s", isoExtString)));
3358 import std.exception : enforce;
3365 enforce(str.length >= 15, new DateTimeException(format("Invalid string format: %s", simpleString)));
3368 enforce(t != -1, new DateTimeException(format("Invalid string format: %s", simpleString)));
7624 import std.exception : enforce;
7629 enforce!DateTimeException(str.length >= 8, text("Invalid ISO String: ", isoString));
7643 enforce!DateTimeException(yearStr.startsWith('-', '+'),
9203 import std.exception : enforce;
9209 enforce!DateTimeException(str.length == 6, text("Invalid ISO String: ", isoString));
10148 import std.exception : enforce;
10154 enforce!DateTimeException(indexOfLHS != -1, format("%s is not a valid TimeString", lhs));
10155 enforce!DateTimeException(indexOfRHS != -1, format("%s is not a valid TimeString", rhs));
10201 can't be thrown at compile time and `cmpTimeUnits` must enforce that