First page Back Continue Last page Summary Graphics
Guidelines, errors
Trap errors when/where they occur
- All public code within try-catch
Handle errors properly
- Should user be informed ?
- Has the user caused the error (how could we let him) ?
- Is there something the user can do to prevent/fix the error ?
Program flow
- Always assume errors, only return status OK if everything really has proved OK
- Use functions in order to return status to calling method
- Never let users do anything they shouldnt be allowed to do
Notes: