Page MenuHomeDevCentral

Generalize error() to all engines
ClosedPublic

Authored by dereckson on Oct 20 2025, 17:14.
Tags
None
Referenced Files
F57372296: D3784.id9803.diff
Wed, Nov 18, 05:50
F57348704: D3784.id.diff
Tue, Nov 17, 22:59
F57191006: D3784.id9803.diff
Mon, Nov 16, 01:53
F56975653: D3784.diff
Thu, Nov 12, 05:41
F56749525: D3784.id9804.diff
Sun, Nov 8, 23:18
F56598229: D3784.id9803.diff
Sat, Nov 7, 13:54
F56408797: D3784.diff
Thu, Nov 5, 21:52
F56154588: D3784.id9804.diff
Tue, Nov 3, 10:46
Subscribers
None

Details

Summary

Even if we throw exceptions, error handling of legacy code
is still calling $db->error() in MySQL context to read
errno/error messages.

While those fields are populated in the exception as context,
it makes sense to expose this method at base abstraction level,
so code migrating to use keruald/database can keep its current
error handling.

Blackhole pure and mock implementations returns an empty array.

Test Plan

Use in Obsidian workspaces/src/includes/error.php

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Passed
Unit
Tests Passed
Branch
main
Build Status
Buildable 6060
Build 6344: arc lint + arc unit