enforceImpl

Enforces that given expression evaluates to boolean true after implicit conversion.

Parameters

E

exception type to create and throw

T

type of expression to test

ok T

result of expression

msg istring

optional custom message for exception

file istring

file of origin

line int

line of origin

Throws

E if expression evaluates to false

Meta