Throws error otherwise.