Brilliant CodinG

Friday, November 20, 2015

Build specific exception handling

       

try {
      //Do some stuff...
} catch (Exception ex) {
#if DEBUG
  throw;
#else
  throw;
#endif
}


       
 
Posted by jb at 8:55 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Thursday, November 19, 2015

The importance of comments

       
// Wait 12 seconds for a reply. 
int timeout = 3000;
       
 
Posted by Peruzzi at 7:46 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Why try?

       
try
{
...
}
catch (Exception)
{
     throw;
}

       
 
Posted by Peruzzi at 7:43 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Contributors

  • Diogo Botelho
  • Palhacito
  • Peruzzi
  • Pica-Miolos
  • jb

Blog Archive

  • ▼  2015 (6)
    • ▼  November (3)
      • Build specific exception handling
      • The importance of comments
      • Why try?
    • ►  October (3)
Awesome Inc. theme. Powered by Blogger.