diff --git a/doc/EXCEPTIONS.md b/doc/EXCEPTIONS.md index e040f6d644..48a6017ede 100644 --- a/doc/EXCEPTIONS.md +++ b/doc/EXCEPTIONS.md @@ -10,11 +10,11 @@ exception use. ## Rules 1. **DO NOT** allow exceptions to leak out of new code into old code -1. **DO** use NTSTATUS or HRESULT as return values as appropriate (HRESULT is preferred) -1. **DO** Encapsulate all exception behaviors within implementing classes +1. **DO** use `NTSTATUS` or `HRESULT` as return values as appropriate (`HRESULT` is preferred) +1. **DO** encapsulate all exception behaviors within implementing classes 1. **DO NOT** introduce modern exception throwing code into old code. Instead, refactor as needed to allow encapsulation or use non-exception based code -1. **DO** use WIL as an alternative for non-throwing modern facilities (e.g. wil::unique_ptr<>) +1. **DO** use WIL as an alternative for non-throwing modern facilities (e.g. `wil::unique_ptr<>`) ## Examples