lamp

Browse by Tags

Sorry, but there are no more tags available to filter with.
Use always the same standard for exceptions and event
26 July 09 11:11 AM | Frederick.Chapleau | with no comments
e is not enough... usually handle event as an “e”, and exceptions as an “ex” ...sorry, it too obvious ;) -f.
Filed under:
A new way to handle cleanup
25 July 09 09:31 PM | Frederick.Chapleau | with no comments
You should know about the try{}catch{} block. But did you know that you can use a try{}finally{} block? So when an error is raised, you are sure that the statements in the finally block are executed. -f.
Filed under:
Throw ex is the devil
11 May 09 10:05 PM | Frederick.Chapleau | with no comments
Why you should not use it: the reason is simple, you loose all the stack trace. But what is the good way to bubble exceptions? Like that: ... }catch(Exception ex){ throw; // Here the catched exception will be bubble } -f.
Filed under: