E when cond is false.void enforceEx(E)(bool cond, lazy string msg) if (is(E : Exception))Helper that throws the given exception type when cond is false.
E | Exception type to throw. |
cond | Condition to enforce. |
msg | Error message (lazily evaluated). |
E when cond is false.