Search notes:

ADODB.Error

The ADODB.Error object provides details about an encountered error.
dim conn as adodb.connection
set conn = new adodb.connection

conn.open "provider=Microsoft.ACE.OLEDB.16.0;…"

conn.execute(…)

…

dim e as adodb.error
for each e in conn.errors
        debug.print("   " & e.number     )
        debug.print("   " & e.description)
        debug.print("   " & e.source     ) ' for example: Microsoft Access Database Engine
        debug.print("   "                )
next e

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758209512, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/ADO/objects/error/index(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78