You are not logged in.
Pages: 1
Hello everyone
How I can intercept ENetSock exception in an example below?
https://gist.github.com/delphiapp/2e4ec … 123a6aa4ab
and one more small point
the file "store3.dto.pas" is generated with errors from "OpenApiPetStore3.json"
Offline
1) You can add multiple exception classes to your except block, with a specific " on E: ENetSock do ... "
2) About errors, please try https://github.com/synopse/mORMot2/commit/1d3b1deaa
Online
1. I want to say, that an except block exist in the TSimpleHttpClient.Request method and it doesn't raise an exception higher. And my messagebox doesn't appear
2. It's ok
Last edited by Alek (2025-04-11 13:02:54)
Offline
Good morning
In my example, the RunClient function should catch all exceptions, including ENetSock. But it doesn't happen.
I wrote an example to show this.
Offline
Yes, of course
Offline
Pages: 1