December 2017
Beginner
352 pages
10h 31m
English
You have a lot of functionality yet to write in the tool you’ve been building, and we’ve been deferring a lot of it to this point. In this chapter, we’ll focus on how to capture, deal with, log, and otherwise handle errors the tool may encounter.
PowerShell.org offers a free eBook, The Big Book of PowerShell Error Handling, which dives into this topic from a more technical reference perspective (https://powershell.org/ebooks). We recommend checking it out, once you’ve completed this tutorial-focused chapter.
PowerShell defines two broad types of bad situation: an error and an exception. Because most PowerShell commands are designed to deal with ...