Lines Matching refs:enforceEx
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));
641 auto e = collectException(enforceEx!Exception(false));
649 auto e = collectException(enforceEx!Exception(false, "hello", "file", 42));
657 auto e = collectException!Error(enforceEx!OutOfMemoryError(false));
665 auto e = collectException!Error(enforceEx!OutOfMemoryError(false, "file", 42));
672 static assert(!is(typeof(enforceEx!int(true))));
677 alias enf = enforceEx!Exception;