New-UDErrorBoundary
Synopsis
Defines a new error boundary around a section of code.
Syntax
New-UDErrorBoundary [-Content] <ScriptBlock> [<CommonParameters>]Description
Defines a new error boundary around a section of code. Error boundaries are used to trap errors and display them on the page.
Parameters
-Content
The content to trap in an error boundary.
Required? true
Position? 1
Default value
Accept pipeline input? false
Aliases
Accept wildcard characters? falseCommon parameters
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Outputs
Examples
Example 1: Error Boundary
Defines an error boundary that traps the exception that is thrown and displays it on the page.
[Component("Error Boundary", "Bug", "Creates a new card.")]
Last updated
Was this helpful?