Home
last modified time | relevance | path

Searched refs:enforceEx (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dexception.d20 $(LREF enforceEx)
604 auto f = enforceEx!FileMissingException(fopen("data.txt")); in catch()
606 enforceEx!DataCorruptionException(line.length);
609 template enforceEx(E : Throwable)
613 T enforceEx(T)(T value, lazy string msg = "", string file = __FILE__, size_t line = __LINE__) in enforceEx() function
621 template enforceEx(E : Throwable)
625 T enforceEx(T)(T value, string file = __FILE__, size_t line = __LINE__) in enforceEx() function
636 assertNotThrown(enforceEx!Exception(true));
637 assertNotThrown(enforceEx!Exception(true, "blah"));
638 assertNotThrown(enforceEx!OutOfMemoryError(true));
[all …]
H A Djson.d104 import std.exception : enforceEx, enforce;
475 enforceEx!JSONException(i < a.length, in inout()
515 enforceEx!JSONException(type == JSON_TYPE.OBJECT || type == JSON_TYPE.NULL, in opIndexAssign()
537 enforceEx!JSONException(i < a.length, in opIndexAssign()
H A Dprocess.d1544 import std.exception : enforceEx;
1545 enforceEx!ProcessException(owned, "Can't wait on a detached process");
1790 import std.exception : enforceEx;
1791 enforceEx!ProcessException(pid.owned, "Can't kill detached process");
H A Dformat.d85 private alias enforceFmt = enforceEx!FormatException;