From fc49caca8a741116e659fdf56f8b67753aa1a664 Mon Sep 17 00:00:00 2001 From: Andy Muehlhausen Date: Mon, 13 May 2019 18:14:41 +0200 Subject: [PATCH] Update EXCEPTIONS.md (#736) updated to indicate HRESULT is preferred over NTSTATUS, as suggested in https://github.com/Microsoft/Terminal/blob/master/doc/STYLE.md [skip ci] --- doc/EXCEPTIONS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/EXCEPTIONS.md b/doc/EXCEPTIONS.md index f6f3ebf8d..e040f6d64 100644 --- a/doc/EXCEPTIONS.md +++ b/doc/EXCEPTIONS.md @@ -10,7 +10,7 @@ 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 +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