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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -