validate

fun validate()

Validates the preconditions.

Throws

if the preconditions are invalid