Sujet : Re: VMS x86-64 database server
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 11. Jul 2025, 01:29:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <104plsf$14565$6@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
User-Agent : Pan/0.162 (Pokrosvk)
On Thu, 10 Jul 2025 20:23:08 -0400, Arne Vajhøj wrote:
And in PHP (at least for the most common database extensions)
the developer have the choice - do they want exceptions or do
they want to test on the return status. Everybody should be happy.
Except the default is not to raise exceptions.
Python makes it easy to catch exceptions. Not only that, it makes it easy
to filter the ones you want to catch, by a) subclassing so you can be more
specific, and b) if even that is not enough, you can query parameters of
the exception object and do a “raise” statement without arguments to pass
it on if your handler doesn’t want to handle it.