Page MenuHomeDevCentral

Generalize error() to all engines
ClosedPublic

Authored by dereckson on Oct 20 2025, 17:14.
Tags
None
Referenced Files
F23667953: D3784.id9802.diff
Thu, Feb 5, 23:45
F23667837: D3784.id9804.diff
Thu, Feb 5, 23:44
F23642533: D3784.id9803.diff
Thu, Feb 5, 20:30
F23642020: D3784.id9804.diff
Thu, Feb 5, 20:28
F23639480: D3784.id9804.diff
Thu, Feb 5, 20:16
F23631445: D3784.id9802.diff
Thu, Feb 5, 19:24
F23598452: D3784.id9802.diff
Thu, Feb 5, 14:53
F23598381: D3784.id9804.diff
Thu, Feb 5, 14:53
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