The
throw_if
function throws the given exception if a given boolean expression evaluates to true
: