Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Error Handling: The Sooner, The Better

Dealing with errors means determining anomalous and incorrect settings in your target environment, and it should be done as early as possible. Find out how.


advertisement

rrors and exceptionsare two similar notions that differ in one crucial aspect: exceptions are a runtime concept, whereas errors are anomalous conditions that can and should be detected as early as possible—at compile-time or even during the preprocessing phase. The following sections show how to deal with errors during the preprocessing phase.


How do you detect anomalous and incorrect settings of the target environment as early as possible?


Use the preprocessor's conditional expressions and the #errordirective.





Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap