Search notes:

VBSCript: on error …

VBScript has two statements that influence error handling:
If on error goto 0 is in effect, a runtime error causes the application to terminate and print an error message. This is the default behaviour.
Setting on error resume next does not stop a program when a runtime error occurs. In order to detect errors, the err object needs to be queried after each statement that is supsected to cause a runtime error.

See also

on error goto in Visual Basic for Applications

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...', 1758180833, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/VBScript/language/on-error(44): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78