mir-core — Libmir Archive
← Libmir Archive
Dlang.org
enforce
mir
exception
version(D_Exceptions)
ref @
trusted
auto ref
enforce
(
string
fmt
string
file
= __FILE__
int
line
= __LINE__
Expr
)
(
scope
auto
ref
return
Expr
arg
)
Examples
import
mir
.
exception
;
try
enforce
!
"Msg"
(
false
);
catch
(
Exception
e
)
assert
(
e
.
msg
==
"Msg"
);
mir
exception
classes
MirError
MirException
functions
enforce
manifest constants
maxMirExceptionMsgLen
mixin templates
MirThrowableImpl