[ << Programming work ] | [Top][Contents] | [ Release work >> ] |
[ < Code comments ] | [ Up : Code style ] | [ Localization > ] |
10.5.7 Handling errors
As a general rule, you should always try to continue computations, even if there is some kind of error. When the program stops, it is often very hard for a user to pinpoint what part of the input causes an error. Finding the culprit is much easier if there is some viewable output.
So functions and methods do not return errorcodes, they never crash, but report a programming_error and try to carry on.
Error and warning messages need to be localized.
[ << Programming work ] | [Top][Contents] | [ Release work >> ] |
[ < Code comments ] | [ Up : Code style ] | [ Localization > ] |