Wednesday, November 16, 2005

Tip on Error Handling

When developing class libraries, it's best to develop those routines without error handling. By doing so, any errors encountered will be sent to the calling function, where they should be handled there. By handling errors in commonly used routines, the calling routine will receive a success since the error was handled by the routine called. This could result in multiple subsequent errors and the error messages will not clearly indicate the cause of the error.

No comments: