database - key not found in the db, return "None" or "not Found"? -


i found on interview question.

should data layer function: "get_person_by_key( person_key )" return "none" or raise "notfound" exception if "person_key" not match record in database? please explain reasoning

does distinction make sense? feel skeptical.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

REDIS - How can I query keys and get their values in one query? -