Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Types of error and recovery

Error conditions can be divided into three broad categories:

Program errors are checked by asserts (__ASSERT_DEBUG macro), and are signalled by a panic. Recovery from such errors involves re-writing part of the program that contained the error.

Environment and user errors can be handled in broadly two ways:

When programming for possible environment or user error conditions, bear in mind both approaches for handling them, and choose the most suitable one.

Applications must perform proper cleanup when an exception occurs, because they are designed to run for long periods (months or even years) without interruption or system re-boot.