Sujet : Re: VMS x86-64 database server
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 11. Jul 2025, 00:05:42
Autres entêtes
Organisation : SunSITE.dk - Supporting Open source
Message-ID : <68704746$0$690$14726298@news.sunsite.dk>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Mozilla Thunderbird
On 7/10/2025 12:28 AM, Lawrence D'Oliveiro wrote:
On Wed, 9 Jul 2025 22:24:50 -0400, Arne Vajhøj wrote:
There are fundamentally two different ways of handling errors:
* return status
* exception
There’s a difference between different statuses that might be returned as
part of the normal execution of an operation, and unexpected conditions
indicating program bugs.
Syntax errors in the embedded language would almost always belong in the
latter category.
Yes.
Java operate with checked and unchecked exceptions based on
that logic.
But I don't see any point for the problem at hand.
If the PHP developer configure the database connection
to not throw exceptions because the developer want to
check return status, then that must be respected. It
does not make any sense of the database extension is
is coded like "SQL syntax is so serious a bug, so even
though the developer asked me not to throw exceptions, then
I will throw one anyway". The code is not prepared to
handle exceptions, because the developer expect the
driver to throw one when told not to.
Arne