From 7b5e5ad133f7333cf8db97892296622b976dd191 Mon Sep 17 00:00:00 2001 From: Daniel Scott-Raynsford Date: Sat, 6 Jul 2019 10:17:29 +1200 Subject: [PATCH] Added Comment Based Help for New-NotImplementedException --- CHANGELOG.md | 3 +++ Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1 | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6f651f0..d744a790 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +- Added Comment Based Help for `New-NotImplementedException` common + function - fixes [Issue #411](https://github.com/PowerShell/NetworkingDsc/issues/411). + ## 7.3.0.0 - DnsClientGlobalSettings: diff --git a/Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1 b/Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1 index d3990d4c..e5ce7b3b 100644 --- a/Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1 +++ b/Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1 @@ -305,6 +305,16 @@ function New-InvalidResultException throw $errorRecordToThrow } +<# + .SYNOPSIS + Creates and throws a not implemented exception. + + .PARAMETER Message + The message explaining why this error is being thrown. + + .PARAMETER ErrorRecord + The error record containing the exception that is causing this terminating error. +#> function New-NotImplementedException { [CmdletBinding()]