@exceptionless/react
Version:
JavaScript client for Exceptionless
14 lines • 468 B
JavaScript
import { Component } from "react";
import { Exceptionless } from "@exceptionless/browser";
export class ExceptionlessErrorBoundary extends Component {
constructor(props) {
super(props);
}
async componentDidCatch(error, errorInfo) {
await Exceptionless.createException(error).setProperty("errorInfo", errorInfo).submit();
}
render() {
return this.props.children;
}
}
//# sourceMappingURL=ExceptionlessErrorBoundary.js.map