AbstractCreates a new FatalError error.
The error message.
The type of fatal error.
The message that recommends next steps to the user. You can pass a string a TokenizedString or a TokenItem if you need to style the message inside the error Banner component.
OptionalnextSteps: TokenItem<InlineToken>[]
Message to show as "next steps" with suggestions to solve the issue.
OptionalcustomSections: CustomSection[]
Custom sections to show in the error banner. To be used if nextSteps is not enough.
OptionalcodeA stable code for JSON consumers to identify this error, included only when known.
OptionalcustomOptionaldetailsSelected JSON-serializable data to include in JSON errors. Never attach the raw error or request.
OptionalformattedOptionalnext
A fatal error represents an error shouldn't be rescued and that causes the execution to terminate. There shouldn't be code that catches fatal errors.