- bakeCorjArray(caught, options?): CaughtObjectReportJsonChild[]
Parameters
- caught: unknown
Optional
options: {
asJsonFormatsToApply?: [CorjAsJsonFormat, ...CorjAsJsonFormat[]];
asStringFormatsToApply?: [CorjAsStringFormat, ...CorjAsStringFormat[]];
childrenMetadataFields?: boolean | {
$schema?: boolean;
as_json_format?: boolean;
as_string_format?: boolean;
children_sources?: boolean;
v?: boolean;
};
childrenSources?: string[];
makeReportId?: ((context) => string);
maxChildrenLevel?: number;
metadataFields?: boolean | {
$schema?: boolean;
as_json_format?: boolean;
as_string_format?: boolean;
children_sources?: boolean;
v?: boolean;
};
onCaughtMaking?: null | CorjMakerOnCaughtMakingCallbackFn;
parseStackToArray?: boolean;
printWarningsOnUnhandledErrors?: boolean;
}Optional
childrenMetadataFields?: boolean | {
$schema?: boolean;
as_json_format?: boolean;
as_string_format?: boolean;
children_sources?: boolean;
v?: boolean;
}
Optional
childrenSources?: string[]
Optional
makeReportId?: ((context) => string)
- (context): string
Parameters
- context: {
caught: unknown;
index: number;
level: number;
path: string;
}caught: unknown
index: number
level: number
path: string
Returns string
Optional
maxChildrenLevel?: number
Optional
metadataFields?: boolean | {
$schema?: boolean;
as_json_format?: boolean;
as_string_format?: boolean;
children_sources?: boolean;
v?: boolean;
}
Optional
parseStackToArray?: boolean
Optional
printWarningsOnUnhandledErrors?: boolean
Alias for makeCaughtObjectReportJsonArray.