Raise exception for bad level parameters