Builds an InvariantViolation. Use it directly where a branch can only be reached by a bug and there is no condition to assert, e.g. throw InvariantViolation("unreachable: unknown variant").
throw InvariantViolation("unreachable: unknown variant")
Builds an InvariantViolation. Use it directly where a branch can only be reached by a bug and there is no condition to assert, e.g.
throw InvariantViolation("unreachable: unknown variant").