Core components of OpenOffice.org will use those error conditions
as error codes (::com::sun::star::sdbc::SQLException::ErrorCode)
whereever possible.
That is, if an SQLException
is raised by
such a component, caused by an error condition which is included in the
ErrorCondition group, then the respective negative value
will be used as ErrorCode
.
This allows to determine specific error conditions in your client code, and
to handle it appropriately.
Note that before you examine the ErrorCode
member of a caught
SQLException
, you need to make sure that the exception
is really thrown by an OpenOffice.org Base core component. To do so, check
whether the error message (Exception::Message
) starts with the
vendor string [OOoBase]
.
The list of defined error conditions, by nature, is expected to permanently grow,
so never assume it being finalized.