This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Commit a098770
"Don't directly throw Exception" System.IO.FileSystem.AccessControl (#25696)
* Fix throw new Exception();
* Fix throw new Exception()
* Fix throw new Exception();
* Fix throw new Exception();
* Fix throw new Exception();
* Fix throw new Exception();
* Fix throw new Exception();
* Don't directly throw Exception
* test RemoveAccessRuleAll_AccessControlType_Deny_ThrowException and throw InvalidOperationException
* change exception message
* add more descriptive exception message1 parent 328fdcc commit a098770
File tree
3 files changed
+32
-13
lines changed- src/System.IO.FileSystem.AccessControl
- src
- Resources
- System/Security/AccessControl
- tests
3 files changed
+32
-13
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
Lines changed: 8 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
| 350 | + | |
| 351 | + | |
353 | 352 | | |
354 | 353 | | |
355 | 354 | | |
| |||
393 | 392 | | |
394 | 393 | | |
395 | 394 | | |
396 | | - | |
397 | | - | |
398 | | - | |
| 395 | + | |
| 396 | + | |
399 | 397 | | |
400 | 398 | | |
401 | 399 | | |
| |||
412 | 410 | | |
413 | 411 | | |
414 | 412 | | |
415 | | - | |
416 | | - | |
417 | | - | |
| 413 | + | |
| 414 | + | |
418 | 415 | | |
419 | 416 | | |
420 | 417 | | |
| |||
488 | 485 | | |
489 | 486 | | |
490 | 487 | | |
491 | | - | |
492 | | - | |
493 | | - | |
| 488 | + | |
| 489 | + | |
494 | 490 | | |
495 | 491 | | |
496 | 492 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
496 | 513 | | |
497 | 514 | | |
498 | 515 | | |
| |||
0 commit comments