Optional $schema?: typeof CORJ_REPORT_OBJECT_JSON_SCHEMA_LINK | typeof CORJ_REPORT_ARRAY_JSON_SCHEMA_LINKA JSON object produced from caught object using format at as_json_format
null value means that producing as_json property failed.
Use onCaughtMaking option to access objects thrown when report JSON was being created.
Links
Indicates a method used to obtain the value of as_json.
Adding this field is controlled by CorjMakerOptions['metadataFields']['as_json_format']).
A string produced from caught object using format at as_string_format
null value means that producing as_string property failed.
Use onCaughtMaking option to access objects thrown when report JSON was being created.
Optional as_Indicates a method used to obtain the value of as_string.
as_string = String(caught).Adding this field is controlled by CorjMakerOptions['metadataFields']['as_string_format']).
Links
Optional children?: (CaughtObjectReportJsonChild | null)[]A flattened representation of tree of nested error objects, collected from properties listed in children_sources.
Optional children_Is set if this caught object has fields reported in children_sources, but they were omitted by implementation.
Array of property names of caught object to collect into children property.
Content of this field corresponds to a setting CorjMakerOptions['childrenSources']. Adding this field is controlled by CorjMakerOptions['metadataFields']['children_sources'].
Optional constructor_Result of
typeof caught?.constructor?.name !== 'string'
? undefined
: caught?.constructor?.name;
undefined result is not included in result object.
null value means that accessing constructor.name on caught object failed.
Use onCaughtMaking option to access objects thrown when report JSON was being created.
Links
For example
try { asdf.sdf } catch (caught) { console.log(caught.constructor.name) }
will print "TypeError".
Result of
caught instanceof Error
Optional message?: string | nullResult of
typeof (caught as any)?.message !== 'string'
? undefined
: (caught as any)?.message;
undefined result is not included in result object.
Normally JS Error instances include a message property with a string.
null value means that accessing message property on caught object failed.
Use onCaughtMaking option to access objects thrown when report JSON was being created.
Links
Optional stack?: string | string[] | nullResult of
typeof (caught as any)?.stack !== 'string'
? undefined
: (caught as any)?.stack;
undefined result is not included in result object.
Normally JS Error instances include a stack property with a string,
although the property is non-standard.
null value means that accessing stack property on caught object failed.
Use onCaughtMaking option to access objects thrown when report JSON was being created.
Links
Result of
typeof caught
Optional v?: typeof CORJ_VERSIONA version of report.
Adding this field is controlled by CorjMakerOptions['metadataFields']['v']).
Optional link to JSON schema this object conforms to.
Adding this field is controlled by CorjMakerOptions['metadataFields']['$schema']).