Exception Handling Macros
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. |
Requirements:
Header: atldef.h
_ATLCATCH
Statement(s) to handle errors occurring in the associated _ATLTRY
.
_ATLCATCH(e)
Parameters
e
The exception to catch.
Remarks
Used in conjunction with _ATLTRY
. Resolves to C++ catch(CAtlException e) for handling a given type of C++ exceptions.
_ATLCATCHALL
Statement(s) to handle errors occurring in the associated _ATLTRY
.
_ATLCATCHALL
Remarks
Used in conjunction with _ATLTRY
. Resolves to C++ catch(...) for handling all types of C++ exceptions.
_ATLTRY
Marks a guarded code section where an error could possibly occur.
_ATLTRY
Remarks
Used in conjunction with _ATLCATCH or _ATLCATCHALL. Resolves to the C++ symbol try.
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για