I don't think this is any better to be honest, this is the kind of place where an IllegalStateException is appropriate.