EPOC provides its own exception handling mechanisms. C++ exception handling (try
, catch
and throw
) is not used because:
compiler support for C++ exception handling was unavailable or inadequate at the time of EPOC's design
EPOC exception handling is specialised for use with other EPOC conventions (C
and T
classes, 32-bit integer error codes), allowing lower overheads than for C++ exception support
Existing C++ programs for other platforms that use exception handling must be modified before they can be used.
Note that the cleanup and two-phase construction idioms that are part of EPOC exception support would still be needed if C++ exception handling were used.