On 10.09.2019 18:32, Jiří Činčura wrote:
Hi *,
every example I've found uses this structure:
catch (const FbException& error)
{
char buf[256];
utl->formatStatus(buf, sizeof(buf), error.getStatus());
// ...
}
Is is guaranteed that the 256 buffer is enough?
Not - though given buffer appears enough for most cases provided one
does not use too long database names.
I'm no expert in C++, but I would expect no and hence some other way to get the
exception message probably exists.
No other method - but if you have reasonable suggestion we will be happy
to implement it. Just an idea - language details are not needed.
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel