Page MenuHomeDevCentral

Generalize error() to all engines
ClosedPublic

Authored by dereckson on Oct 20 2025, 17:14.
Tags
None
Referenced Files
F20461274: D3784.diff
Fri, Jan 9, 05:12
Unknown Object (File)
Wed, Jan 7, 08:54
Unknown Object (File)
Fri, Jan 2, 17:48
Unknown Object (File)
Fri, Jan 2, 08:14
Unknown Object (File)
Wed, Dec 31, 17:37
Unknown Object (File)
Tue, Dec 30, 09:39
Unknown Object (File)
Wed, Dec 24, 13:40
Unknown Object (File)
Wed, Dec 24, 09:28
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 6059
Build 6343: arc lint + arc unit