Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Forums
Blogs
eBook
Library
Friends
Twitter Grid
Featured Posts
Directory
Dreaming in PowerShell
Code MarkUp Tool
Dreaming in PowerShell
»
All Tags
»
Trap
(
RSS
)
Browse by Tags
Share
|
Recent Posts
Trapping Errors
Archives
August 2010 (1)
March 2010 (1)
January 2010 (3)
September 2009 (2)
August 2009 (1)
July 2009 (1)
May 2009 (2)
March 2009 (1)
February 2009 (1)
January 2009 (3)
December 2008 (1)
November 2008 (8)
October 2008 (3)
September 2008 (1)
Tags
-as
COM
Dir
Enter-PSSession
Export-CliXML
Folder
Format-Table
Get-Command
Get-ComputerRestorePoint
GetFolderPath
GetType()
HTML
Import-CliXML
-is
OpenWSMan
Pipeline
PowerShellPlus
Remoting
Transaction
type
V2
Windows 7
Write-Progress
WS-man
XML
View more
Catch
Error Message
ErrorDetails
Stacktrace
Throw
Trapping Errors
A lot of people are confused and ask how to correctly trap errors. Let's see how that works. Default Error Handling Whenever an error occurs, a so called "exception" is raised. If noone bothers to "handle" that exception, it finally...
Published
Mon, Sep 09 2008 2:13 PM
by
Tobias Weltner
Filed under:
Error Message
,
ErrorDetails
,
Throw
,
Trap
,
Stacktrace
,
Catch
Copyright 2010 PowerShell.com. All rights reserved.