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]
This commit is contained in:
Andy Muehlhausen 2019-05-13 18:14:41 +02:00 committed by Dustin L. Howett (MSFT)
parent aeef340bdc
commit fc49caca8a

View file

@ -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