OWL
data_display
Error Handler
Odoo 19 OWL component — Error Handler (core)
Live preview
Interactive
Source excerpt
web/static/src/core/utils/components.js
import { Component, onError, xml } from "@odoo/owl";
export class ErrorHandler extends Component {
static template = xml`<t t-slot="default" />`;
static props = ["onError", "slots"];
setup() {
onError((error) => {
this.props.onError(error);
});
}
}
Registry / API
- Registry name
ErrorHandler- Category
—- Module
web- Slug
error-handler- Nav group
data_display