On 2020-01-29 10:57, Alex Peshkoff via Firebird-devel wrote:
On 2020-01-28 20:01, Dimitry Sibiryakov wrote:
28.01.2020 17:55, Alex Peshkoff via Firebird-devel wrote:
More or less obvious - if sql state to be set explicitly when raising an exception and should differ from default for used error code.

  Yes, it is obvious but I wonder how to use it with warnings.



That will be first such use of this class.
You should be able to do something like
(Arg::Warning(isc_...) << Arg::SqlState("01000")).raise();
and after fixing related bugs see that sql state when warning is displayed.


I've certainly provided a bad example. Warnings are not thrown, they can be just stored in status manually.




Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to