I have a class that is initialized with values stored in a database, and is modeled around the table that holds those values (so that each property is tied directly to an attribute in the table). When the class is instantiated, the object is based on a particular row in the table. My concern is if the row is deleted from the database and the object is rendered obselete. How do I gracefully handle destroying the object or throwing an exception if it is used?
...
Go to the complete details ...