& {
trap { throw $_ }
&$Finally
}
}
使用示例:
Try {
echo " ::Do some work..."
echo " ::Try divide by zero: $(0/0)"
} -Catch {
echo " ::Cannot handle the error (will rethrow): $_"
#throw $_
} -Finally {
echo " ::Cleanup resources..."
}
新闻热点
疑难解答
图片精选