mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
commit
88716fd1c6
|
@ -8577,7 +8577,7 @@ Instead, use
|
|||
|
||||
**Reason**: Catching an exception in a function that cannot take a meaningful recovery action leads to complexity and waste.
|
||||
Let an exception propagate until it reaches a function that can handle it.
|
||||
Let cleanup actions on the unwinding path be handles by [RAII](#Re-raii).
|
||||
Let cleanup actions on the unwinding path be handled by [RAII](#Re-raii).
|
||||
|
||||
**Example; don't**:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user