Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.os.vms    |    DEC's VAX* line of computers & VMS.    |    264,096 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 262,845 of 264,096    |
|    =?UTF-8?Q?Arne_Vajh=C3=B8j?= to Lawrence D'Oliveiro    |
|    Re: VMS x86-64 database server    |
|    10 Jul 25 20:38:29    |
      From: arne@vajhoej.dk              On 7/10/2025 8:29 PM, Lawrence D'Oliveiro wrote:       > 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.              The default in recent versions (and that includes all supported       versions) is 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.              The ability to subclass exceptions to catch specific and the ability       to rethrow exceptions are quite common. Not Python specific at all.              Java use sub-classing extensively for database. A little simplified:               |->SQLNonTransientException->non transient exception classses       SQLException-|        |->SQLTransientException->transient exception classses              Arne              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca