Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 475 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 475 Bytes

ErrorRecord

Simple Module that helps creating an ErrorRecord

Overview

The function New-ErrorRecord will create an error record according to your parameters. -Exception will offer you all locally available exception, so you don't have to look for appropriate exceptions

Installation

Install-Module ErrorRecord

Examples

New-ErrorRecord -Message MyError -Exception System.IO.FileNotFoundException -Category ObjectNotFound