Guidelines for Complex Error Handling

When you create large applications that use multiple modules, the error-handling code can get quite complex. Keep these guidelines in mind: