maybeCreateErrorPage()
Home > @backstage/frontend-defaults
> maybeCreateErrorPage
If there are any unrecoverable errors in the app, this will return an error page in the form of a JSX element.
If there are any recoverable errors, they will always be logged as warnings in the console.
Signature:
function maybeCreateErrorPage(app: {
errors?: AppError[];
}, options?: {
warningCodes?: Array<keyof AppErrorTypes>;
}): JSX.Element | undefined;
Parameters
Parameter |
Type |
Description |
---|---|---|
app |
{ errors?: AppError[]; } | |
options |
{ warningCodes?: Array<keyof AppErrorTypes>; } |
(Optional) |
JSX.Element | undefined