I just wonder if we should always define a function which accesses database return boolean? Therefore, the calling object can decide if the the database access is successful.
But, how do we pass the error to the calling function? By catch and try? What is the best "expert" way of doing this? Thanks.