ReusableExceptionImplementation.enforce

Throws this instance if ok is false, 0 or null.

template ReusableExceptionImplementation()
void
enforce
(
T
)
(
T ok
,,
istring file = __FILE__
,
long line = __LINE__
)

Parameters

ok T

condition to enforce

msg cstring

exception message

file istring

file where the exception has been thrown

line long

line where the exception has been thrown

Throws

this instance if ok is false, 0 or null.

Meta