[Gambas-user] Error.Raise an error with a code other than -1
benoit.minisini at gambas-basic.org
Wed Jun 15 11:52:52 CEST 2022
Le 09/06/2022 à 22:55, Marc Guillaume a écrit :
>> At the moment it's not really possible.
>> I have the project to create a true non-global error object so that
>> we can do:
>> Catch <variable>
>> Print <variable>.Text;; <variable>.Code
>> If I succeed, it will be possible to add some user property to this
>> object (a tag for example), so that you can add your own information
>> to the error.
> Is the fact that the mysql code numbers are not retrieved during an
> error due to the same problem?
> It would be useful to have these codes to make decisions, some codes
> being informative.
You retrieve the MySQL error code from the Error property of the
More information about the User