diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-24 10:41:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-24 13:43:57 +0200 |
commit | fa89349b360945d726db0c5f85cd4ccb0822417f (patch) | |
tree | f58a010d79d4acf1ff46e58ef3a2dcb19c2de9a3 /include | |
parent | b71079f6e145a8916e1bc7f198e7c445a7101dc8 (diff) |
make SQLExceptionInfo utilities available for external use
Change-Id: I6561fa433f6619d8de97983fa962f874cbf5b536
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122570
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/connectivity/dbexception.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx index 4edd174e5635..8c9dfad33efe 100644 --- a/include/connectivity/dbexception.hxx +++ b/include/connectivity/dbexception.hxx @@ -131,6 +131,12 @@ public: m_eType = TYPE::Undefined; } + // create an exception + static css::uno::Any createException(TYPE eType, const OUString& rErrorMessage, const OUString& rSQLState, const sal_Int32 nErrorCode); + + // find the end of the exception chain + static css::sdbc::SQLException* getLastException(css::sdbc::SQLException* pLastException); + private: void implDetermineType(); }; |