description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: Exception Handling Macros |
Exception Handling Macros |
11/04/2016 |
|
|
a8385d34-3fb0-4006-a42a-de045cacf0f4 |
These macros provide support for exception handling.
Name | Description |
---|---|
_ATLCATCH | Statement(s) to handle errors occurring in the associated _ATLTRY . |
_ATLCATCHALL | Statement(s) to handle errors occurring in the associated _ATLTRY . |
_ATLTRY | Marks a guarded code section where an error could possibly occur. |
Header: atldef.h
Statement(s) to handle errors occurring in the associated _ATLTRY
.
_ATLCATCH(e)
e
The exception to catch.
Used in conjunction with _ATLTRY
. Resolves to C++ catch(CAtlException e) for handling a given type of C++ exceptions.
Statement(s) to handle errors occurring in the associated _ATLTRY
.
_ATLCATCHALL
Used in conjunction with _ATLTRY
. Resolves to C++ catch(...) for handling all types of C++ exceptions.
Marks a guarded code section where an error could possibly occur.
_ATLTRY
Used in conjunction with _ATLCATCH or _ATLCATCHALL. Resolves to the C++ symbol try.