11
votes
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, ...
Statistics
|
Visits by Source |
User Actions |




