IllegalArgumentException is my usual go-to for things like this.