Get-ErrorInfo
오류 정보 개체를 가져옵니다.
Syntax
Get-ErrorInfo
[[-errorIndex] <Int32>]
[<CommonParameters>]
Description
Get-ErrorInfo cmdlet은 오류 정보 개체를 가져옵니다.
예제
1: 인덱스 3에서 오류 개체 가져오기
PS C:\>Get-ErrorInfo -errorIndex 3
이 명령은 인덱스 3에서 오류 개체를 가져옵니다.
2: 오류 개체 가져오기
PS C:\>Get-ErrorInfo
이 명령은 인덱스 0에서 오류 개체를 가져옵니다. 가장 최근의 오류 개체입니다.
매개 변수
-errorIndex
가져올 오류 개체의 인덱스를 지정합니다.
Type: | Int32 |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |