Description
The current implementation includes a custom New-TerminatingError function in the DhcpServerDsc.Common module. This should be replaced with the standardized error helper functions available in DscResource.Common.
Background
As per DSC Community guidelines, we should check DscResource.Common before creating private functions. The DscResource.Common module provides several error helper functions such as:
- New-InvalidDataException
- New-ArgumentException
- New-InvalidOperationException
- New-ObjectNotFoundException
- New-InvalidResultException
- New-NotImplementedException
Tasks
References
Requested by: @dan-hughes
Description
The current implementation includes a custom New-TerminatingError function in the DhcpServerDsc.Common module. This should be replaced with the standardized error helper functions available in DscResource.Common.
Background
As per DSC Community guidelines, we should check DscResource.Common before creating private functions. The DscResource.Common module provides several error helper functions such as:
Tasks
References
Requested by: @dan-hughes