Lines Matching refs:throw

116throw new AssertError("assertNotThrown failed: " ~ T.stringof ~ " was thrown" ~ tail, file, line, …  in catch()
155 void throwEx(Throwable t) { throw t; } in throwEx()
258 throw new AssertError("assertThrown failed: No " ~ T.stringof ~ " was thrown"
282 void throwEx(Throwable t) { throw t; } in throwEx()
361 E = Exception type to throw if the value evalues to false.
370 $(D enforce) is used to throw exceptions and is therefore intended to
615 if (!value) throw new E(msg, file, line); in enforceEx()
627 if (!value) throw new E(file, line); in enforceEx()
697 expression = The expression which may throw an exception.
716 int foo() { throw new Exception("blah"); } in foo()
738 expression = The expression which may throw an exception.
755 int foo() { throw new Exception("blah"); } in foo()
776 expression = The expression which may throw an exception.
793 void throwFunc() { throw new Exception("My Message."); } in throwFunc()
799 void throwEmptyFunc() { throw new Exception(""); } in throwEmptyFunc()
979 throw new AssertError("assumeWontThrow failed: Expression did throw" ~ in assumeWontThrow()
993 throw new Exception("Tried to take root of negative number"); in squareRoot()
1016 throw new Exception("I threw up"); in alwaysThrows()
1563 expression, if it does not throw. Otherwise, returns the result of
1734 int throwRangeError() { throw new RangeError; }
2078 throw new Exception("empty has thrown");
2083 throw new Exception("front has thrown");
2088 throw new Exception("back has thrown");
2093 throw new Exception("popFront has thrown");
2098 throw new Exception("popBack has thrown");
2103 throw new Exception("opIndex has thrown");
2108 throw new Exception("opSlice has thrown");
2113 throw new Exception("length has thrown");
2120 throw new Exception("save has thrown");
2196 throw new Exception("opSlice has thrown");
2271 throw new MeaCulpa("test");