Liste des Groupes | Revenir à co vms |
On Thu, 10 Jul 2025 20:23:08 -0400, Arne Vajhøj wrote:The default in recent versions (and that includes all supportedAnd in PHP (at least for the most common database extensions)Except the default is not to raise exceptions.
the developer have the choice - do they want exceptions or do
they want to test on the return status. Everybody should be happy.
Python makes it easy to catch exceptions. Not only that, it makes it easyThe ability to subclass exceptions to catch specific and the ability
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.
Les messages affichés proviennent d'usenet.