Hi -
Thanks for your reply. I'm a new guy on the team, so I can't do much flogging.
Yes, I agree that exceptions are the way to go. But the main reason why a few people on the team don't want exceptions is because of getAllObjects().
We have 1000+ objects to return. If a few are bad, we...
Hello -
What's a good way to return an error status to the caller of a utility method? I have a class that stores and retrieves objects. During the operations, several errors can occur. The team prefers that these methods do not throw exceptions, but instead return error codes somehow. Here's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.