dsccommunity / DscResource.Common

This module contains common functions that are used in DSC resources.
https://dsccommunity.org
MIT License
9 stars 9 forks source link

Add `New-Exception`, and `PassThru` parameter to exception commands #115

Closed johlju closed 7 months ago

johlju commented 7 months ago

Pull Request (PR) description

Task list


This change is Reviewable

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (1ada77f) 91% compared to head (8495e30) 91%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115/graphs/tree.svg?width=650&height=150&src=pr&token=rlTA7BkRB3&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity)](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity) ```diff @@ Coverage Diff @@ ## main #115 +/- ## =================================== Coverage 91% 91% =================================== Files 37 38 +1 Lines 664 668 +4 =================================== + Hits 609 613 +4 Misses 55 55 ``` | [Files](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity) | Coverage Δ | | |---|---|---| | [source/Public/New-ArgumentException.ps1](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity#diff-c291cmNlL1B1YmxpYy9OZXctQXJndW1lbnRFeGNlcHRpb24ucHMx) | `100% <100%> (ø)` | | | [source/Public/New-Exception.ps1](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity#diff-c291cmNlL1B1YmxpYy9OZXctRXhjZXB0aW9uLnBzMQ==) | `100% <100%> (ø)` | | | [source/Public/New-InvalidDataException.ps1](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity#diff-c291cmNlL1B1YmxpYy9OZXctSW52YWxpZERhdGFFeGNlcHRpb24ucHMx) | `100% <ø> (ø)` | | | [source/Public/New-InvalidOperationException.ps1](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity#diff-c291cmNlL1B1YmxpYy9OZXctSW52YWxpZE9wZXJhdGlvbkV4Y2VwdGlvbi5wczE=) | `100% <100%> (ø)` | | | [source/Public/New-InvalidResultException.ps1](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity#diff-c291cmNlL1B1YmxpYy9OZXctSW52YWxpZFJlc3VsdEV4Y2VwdGlvbi5wczE=) | `100% <100%> (ø)` | | | [source/Public/New-NotImplementedException.ps1](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity#diff-c291cmNlL1B1YmxpYy9OZXctTm90SW1wbGVtZW50ZWRFeGNlcHRpb24ucHMx) | `100% <100%> (ø)` | | | [source/Public/New-ObjectNotFoundException.ps1](https://app.codecov.io/gh/dsccommunity/DscResource.Common/pull/115?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dsccommunity#diff-c291cmNlL1B1YmxpYy9OZXctT2JqZWN0Tm90Rm91bmRFeGNlcHRpb24ucHMx) | `100% <100%> (ø)` | |