Reference
Arcane.diagnostics.recentErrors()
Lists up to 60 recent in-memory structured Core errors, newest first. Requires diagnostics.read.
This focused page is derived from the mechanically checked full member inventory.
Syntax
Arcane.diagnostics.recentErrors()
Parameters
None
Return value
Promise<diagnostic[]>
Description
Lists up to 60 recent in-memory structured Core errors, newest first. Requires diagnostics.read.
Overview
Returns up to 60 recent structured Core errors, newest first, for an application
granted diagnostics.read. Use it to populate a local diagnostics view after a
failure; do not upload complete records automatically because technical fields
can contain local paths, command output, usernames, or other machine context.
Diagnostic records
Each record includes an opaque id, time, scope, stable code, user-facing
message and resolution, status and retry metadata, plus bounded technical
fields when the originating error supplied them. The in-memory list is not a
durable audit log and is replaced as newer failures arrive.
Example
async function showRecentDiagnosticSummaries() {
const diagnostics = await Arcane.diagnostics.recentErrors();
for (const item of diagnostics) {
console.log(`${item.time} ${item.code}: ${item.message}`);
}
}
await showRecentDiagnosticSummaries();