Searched refs:enforceEx (Results 1 – 4 of 4) sorted by relevance
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
H A D | exception.d | 20 $(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 D | json.d | 104 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 D | process.d | 1544 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 D | format.d | 85 private alias enforceFmt = enforceEx!FormatException;
|