11
votes
Vote UpVote

On the Proper Design of Exception Hierarchies

Nick Hodges – Introduction Exceptions are all over the place in Delphi.  Introduced way back in Delphi 1.0, they totally changed the way that folks looked at error handling.  Previously, we’d do things like: ErrorCode := DoSomething; if ErrorCode > 0 then begin DoNormalStuff; end else begin UhOh; end; We had to constantly interrupt the flow of our code in order to make sure that all is well.  Exceptions changed all that by letting you put all the error handling at the end, in a try…except block – out of the way of the flow of your code -- where you could handle things separately, ...
Favorite? Off-Topic? nick@nickhodges.com @ 2012-02-20 04:13

Statistics

Visits: 1077
Votes: 11
Favorites: 3
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
berocoder
GunSmoker
Jørn E. Angeltveit
menjaraz
Ravaut123
Rob McDonell
stukelly
TDelphiHobbyist
vcldeveloper
Wouter
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)