Correct exception to be thrown.