Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12314323
D3784.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3784.diff
View Options
diff --git a/composer.json b/composer.json
--- a/composer.json
+++ b/composer.json
@@ -41,7 +41,7 @@
"replace": {
"keruald/cache": "0.1.0",
"keruald/commands": "0.0.1",
- "keruald/database": "0.5.1",
+ "keruald/database": "0.5.2",
"keruald/github": "0.2.1",
"keruald/omnitools": "0.15.0",
"keruald/report": "0.1.0"
diff --git a/database/src/DatabaseEngine.php b/database/src/DatabaseEngine.php
--- a/database/src/DatabaseEngine.php
+++ b/database/src/DatabaseEngine.php
@@ -151,6 +151,11 @@
);
}
+ ///
+ /// Error handling :: compatibility
+ ///
+
+ public abstract function error () : array;
///
/// Events
diff --git a/database/src/Engines/BlackholeEngine.php b/database/src/Engines/BlackholeEngine.php
--- a/database/src/Engines/BlackholeEngine.php
+++ b/database/src/Engines/BlackholeEngine.php
@@ -40,6 +40,14 @@
return true;
}
+ ///
+ /// Error handling
+ ///
+
+ public function error () : array {
+ return [];
+ }
+
///
/// Events
///
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 07:48 (13 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3098239
Default Alt Text
D3784.diff (1 KB)
Attached To
Mode
D3784: Generalize error() to all engines
Attached
Detach File
Event Timeline
Log In to Comment