Error Boundary
Error boundary component for Universal Dashboard.
The New-UDErrorBoundary component is used for isolating portions of a dashboard to contain components that may throw an error. Many Universal Dashboard components use the error boundary component internally.
If you'd like to isolate a portion of your dashboard to prevent the entire page from failing to load, you can use the following syntax.
1
New-UDErrorBoundary -Content {
2
throw "Oh no!"
3
}
Copied!
If any error is thrown from the content, you will see an error such as thing.

API

New-UDErrorBoundary
Display an error card when an error is thrown in your script.
Name
Type
Description
Required
Content
ScriptBlock
A script block to prevent from throwing an error to the top of the page.
True
Last modified 4mo ago
Copy link
Contents
API