Raise proper exception if an option does not exist