D-Programming-Language/phobos — pull request #711 by jmdavis (2012-07-22 07:43:44+00:00)
Title: Fix for issue# 8398. (enforceEx cannot be used with OutOfMemoryError)

`enforceEx` will now work with exceptions which take file and line number but no message (like `OutOfMemoryError`), but it still restricts itself such that only exceptions with specific constructor signatures can be thrown (to avoid throwing exceptions without a file or line number as the deprecated overload does).