Objects by Design Forums Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home  
Objects by Design Forums : Powered by vBulletin version 2.3.5 Objects by Design Forums > Main Forums > Object-Oriented Design and Patterns > null checks
  Last Thread   Next Thread
Thread Post New Thread    Post A Reply
Junior Member

Registered: Jun 2006
Posts: 4

null checks

Hi all,

While designing an application, what are the basic guidelines for the following:

1. when to make a NOT NULL check on objects.

2. when to throw an exception in case of an object being null, in a use case flow.

3. when should a method return null and when should it throw an exception instead?

Thanks in advance.

Report this post to a moderator | IP: Logged

Old Post 07-21-2006 05:40 AM
tddnewuser is offline Click Here to See the Profile for tddnewuser Click here to Send tddnewuser a Private Message Find more posts by tddnewuser Add tddnewuser to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 12:26 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF

< Contact Us - Objects by Design >

Powered by: vBulletin Version 2.3.5
Copyright ©2000 - 2018, Jelsoft Enterprises Limited.
Copyright 1999-2005, Objects by Design, Inc.