For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDErrorBoundary

Defines a new error boundary around a section of code.

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?  false

    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see
        about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?