Page MenuHomeDevCentral

Generalize error() to all engines
ClosedPublic

Authored by dereckson on Oct 20 2025, 17:14.
Tags
None
Referenced Files
F23552772: D3784.id9803.diff
Thu, Feb 5, 09:26
F23539147: D3784.id9803.diff
Thu, Feb 5, 07:50
F23528024: D3784.id9802.diff
Thu, Feb 5, 06:32
F23525351: D3784.id9803.diff
Thu, Feb 5, 06:10
F23434376: D3784.id9802.diff
Wed, Feb 4, 21:50
F23434359: D3784.id9804.diff
Wed, Feb 4, 21:50
F23433824: D3784.id9803.diff
Wed, Feb 4, 21:48
Unknown Object (File)
Sun, Feb 1, 11:59
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 Not Applicable
Unit
Tests Not Applicable