Changes between Version 3 and Version 4 of Jaws2/Internals/Exceptions
- Timestamp:
- 08/25/07 04:58:50 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Jaws2/Internals/Exceptions
v3 v4 1 1 = Exceptions and assertions = 2 The Jaws API uses two types of language-level constructs to handle error cases: exceptions and assertions. 2 The Jaws API uses two types of language-level constructs to handle error cases: exceptions and assertions. To know how they are handled, please refer to the [wiki:Jaws2/Internals/Toolkit Jaws_Toolkit] page. 3 3 4 4 == Exceptions == 25 25 26 26 == Assertions == 27 Assertions 27 Assertions are used to avoid programming errors ({{{EC_CORE}}} exceptions). In production, the evaluation of assertions is disabled to fasten the execution. Assertions should be used only when, in the end, the programming error will be caught anyway, but in a much less favourable, elegant and meaningful way. Assertions should be used as much as possible instead of {{{Jaws_Exception::EC_CORE}}} exceptions. 28 28 29 29 === [wiki:Jaws2/Internals < Click here to go back to Jaws 2 Internals section] ===