The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
enforceEx.enforceEx
std
exception
enforceEx
Ditto
T
enforceEx
(T value, string file, size_t line)
template
enforceEx
(E : Throwable)
deprecated("Use `enforce`. `enforceEx` will be removed with 2.089.")
T
enforceEx
(
T
)
(
T
value
,
string
file
= __FILE__
,
size_t
line
= __LINE__
)
if
(
is
(
typeof
(new
E
(
string.init
,
size_t.init
))) &&
!
is
(
typeof
(new
E
("",
string.init
,
size_t.init
)))
)
template
enforceEx
(E : Throwable)
Meta
Source
See Implementation
std
exception
enforceEx
functions
enforceEx
Suggestion Box / Bug Report
Ditto