# Error Boundary

The `New-UDErrorBoundary` component is used for isolating portions of a dashboard to contain components that may throw an error. Many app components use the error boundary component internally.

If you'd like to isolate a portion of your app to prevent the entire page from failing to load, you can use the following syntax.

```powershell
New-UDErrorBoundary -Content {
    throw "Oh no!"
}
```

If any error is thrown from the content, you will see an error such as thing.

![](https://1373299915-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8F6PrkNTG8Y34hADzKOL%2Fuploads%2Fgit-blob-109d808936d650a7cbc3239df3cf913e0ac7dbd3%2Fimage%20\(58\).png?alt=media)

## API

[**New-UDErrorBoundary**](https://github.com/ironmansoftware/universal-docs/blob/v5/cmdlets/New-UDErrorBoundary.txt)
