Errors
Start here
Section titled “Start here”FlareErrorApplication error with a stable name, category, optional numeric code, and exposure flag.flareErrorCodesBuilds a frozen, branded error-codes token from a descriptor of categories and named entries.errorSchemaDeclares the JSON shape of a FlareError detail payload for type-level inference.ErrorCategoryA valid Flare error category key.FlareValidationErrorError thrown by FlareHost.build when one or more validators reportseverity: "error"entries.
Classes
Section titled “Classes”FlareErrorApplication error with a stable name, category, optional numeric code, and exposure flag.FlareValidationErrorError thrown by FlareHost.build when one or more validators reportseverity: "error"entries.
Functions
Section titled “Functions”errorSchemaDeclares the JSON shape of a FlareError detail payload for type-level inference.flareErrorCodesBuilds a frozen, branded error-codes token from a descriptor of categories and named entries.
ErrorCategoryA valid Flare error category key.ErrorCodeDescriptorA single Flare error code entry used to construct a FlareError.ErrorCodesTokenBrand marker identifying a registry produced byflareErrorCodes.ErrorSchemaPhantom-typed marker for the JSON shape of a FlareError detail payload.ValidationErrorSingle entry produced by a validator describing a problem in the host configuration.ValidationSeveritySeverity assigned to a ValidationError.
Constants
Section titled “Constants”ErrorCategoriesDefault HTTP status code for each canonical Flare error category.