The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
enforceEx
std
exception
Undocumented in source.
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)
Members
Functions
enforceEx
T
enforceEx
(T value, string file, size_t line)
Ditto
Meta
Source
See Implementation
std
exception
aliases
errnoEnforce
classes
ErrnoException
enums
RangePrimitive
functions
assertNotThrown
assertThrown
assumeUnique
assumeWontThrow
collectException
collectExceptionMsg
doesPointTo
handle
ifThrown
mayPointTo
manifest constants
emptyExceptionMsg
mixin templates
basicExceptionCtors
templates
enforce
enforceEx
Suggestion Box / Bug Report
Undocumented in source.