Constructor
# new ErrorBoundary()
Methods
# componentDidCatch(error, errorInfo)
Catches errors that occur in the child components.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
Error
|
The error that was caught. |
errorInfo |
object
|
Additional information about the error. |