|
-
February 2nd, 2010, 08:46 AM
#3
Re: Getting control of Assertion
Assertions should only be used for cases which absolutely break the code and should never happen. They're strictly sanity checks.
If you have a case in which it actually makes sense to log an error but continue, then you should be using return codes or exceptions to indicate the error rather than assertions.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|