Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a226bf71
Kaydet (Commit)
a226bf71
authored
Nis 29, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: log exception messages in dbmgr.cxx
Change-Id: I66e7b778a681e6f5ee7b0dd051bb52a1538c0645
üst
fec037e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
+18
-17
dbmgr.cxx
sw/source/uibase/dbui/dbmgr.cxx
+18
-17
No files found.
sw/source/uibase/dbui/dbmgr.cxx
Dosyayı görüntüle @
a226bf71
...
@@ -124,6 +124,7 @@
...
@@ -124,6 +124,7 @@
#include <swcrsr.hxx>
#include <swcrsr.hxx>
#include <swevent.hxx>
#include <swevent.hxx>
#include <osl/file.hxx>
#include <osl/file.hxx>
#include <sal/log.hxx>
#include <swabstdlg.hxx>
#include <swabstdlg.hxx>
#include <fmthdft.hxx>
#include <fmthdft.hxx>
#include <envelp.hrc>
#include <envelp.hrc>
...
@@ -402,11 +403,11 @@ bool SwDBManager::MergeNew( const SwMergeDescriptor& rMergeDesc, vcl::Window* pP
...
@@ -402,11 +403,11 @@ bool SwDBManager::MergeNew( const SwMergeDescriptor& rMergeDesc, vcl::Window* pP
pImpl
->
pMergeData
->
CheckEndOfDB
();
pImpl
->
pMergeData
->
CheckEndOfDB
();
}
}
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
e
)
{
{
pImpl
->
pMergeData
->
bEndOfDB
=
true
;
pImpl
->
pMergeData
->
bEndOfDB
=
true
;
pImpl
->
pMergeData
->
CheckEndOfDB
();
pImpl
->
pMergeData
->
CheckEndOfDB
();
OSL_FAIL
(
"exception in MergeNew()"
);
SAL_WARN
(
"sw.mailmerge"
,
"exception in MergeNew(): "
<<
e
.
Message
);
}
}
uno
::
Reference
<
XDataSource
>
xSource
=
SwDBManager
::
getDataSourceAsParent
(
xConnection
,
aData
.
sDataSource
);
uno
::
Reference
<
XDataSource
>
xSource
=
SwDBManager
::
getDataSourceAsParent
(
xConnection
,
aData
.
sDataSource
);
...
@@ -1592,9 +1593,9 @@ sal_uLong SwDBManager::GetColumnFmt( const OUString& rDBName,
...
@@ -1592,9 +1593,9 @@ sal_uLong SwDBManager::GetColumnFmt( const OUString& rDBName,
{
{
xCols
=
xColsSupp
->
getColumns
();
xCols
=
xColsSupp
->
getColumns
();
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
e
)
{
{
OSL_FAIL
(
"Exception in getColumns()"
);
SAL_WARN
(
"sw.mailmerge"
,
"Exception in getColumns(): "
<<
e
.
Message
);
}
}
if
(
!
xCols
.
is
()
||
!
xCols
->
hasByName
(
rColNm
))
if
(
!
xCols
.
is
()
||
!
xCols
->
hasByName
(
rColNm
))
return
nRet
;
return
nRet
;
...
@@ -1682,16 +1683,16 @@ sal_uLong SwDBManager::GetColumnFmt( uno::Reference< XDataSource> xSource,
...
@@ -1682,16 +1683,16 @@ sal_uLong SwDBManager::GetColumnFmt( uno::Reference< XDataSource> xSource,
nRet
=
nFmt
;
nRet
=
nFmt
;
bUseDefault
=
false
;
bUseDefault
=
false
;
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
e
)
{
{
OSL_FAIL
(
"illegal number format key"
);
SAL_WARN
(
"sw.mailmerge"
,
"illegal number format key: "
<<
e
.
Message
);
}
}
}
}
}
}
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
OSL_FAIL
(
"no FormatKey property found"
);
SAL_WARN
(
"sw.mailmerge"
,
"no FormatKey property found"
);
}
}
if
(
bUseDefault
)
if
(
bUseDefault
)
nRet
=
getDefaultNumberFormat
(
xColumn
,
xDocNumberFormatTypes
,
aLocale
);
nRet
=
getDefaultNumberFormat
(
xColumn
,
xDocNumberFormatTypes
,
aLocale
);
...
@@ -1806,9 +1807,9 @@ uno::Reference< sdbcx::XColumnsSupplier> SwDBManager::GetColumnSupplier(uno::Ref
...
@@ -1806,9 +1807,9 @@ uno::Reference< sdbcx::XColumnsSupplier> SwDBManager::GetColumnSupplier(uno::Ref
xRowSet
->
execute
();
xRowSet
->
execute
();
xRet
=
Reference
<
XColumnsSupplier
>
(
xRowSet
,
UNO_QUERY
);
xRet
=
Reference
<
XColumnsSupplier
>
(
xRowSet
,
UNO_QUERY
);
}
}
catch
(
const
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
e
)
{
{
OSL_FAIL
(
"Exception in SwDBManager::GetColumnSupplier"
);
SAL_WARN
(
"sw.mailmerge"
,
"Exception in SwDBManager::GetColumnSupplier: "
<<
e
.
Message
);
}
}
return
xRet
;
return
xRet
;
...
@@ -1873,9 +1874,9 @@ OUString SwDBManager::GetDBField(uno::Reference<XPropertySet> xColumnProps,
...
@@ -1873,9 +1874,9 @@ OUString SwDBManager::GetDBField(uno::Reference<XPropertySet> xColumnProps,
}
}
}
}
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
e
)
{
{
OSL_FAIL
(
"exception caught"
);
SAL_WARN
(
"sw.mailmerge"
,
"exception caught: "
<<
e
.
Message
);
}
}
}
}
...
@@ -2860,9 +2861,9 @@ void SwDBManager::InsertText(SwWrtShell& rSh,
...
@@ -2860,9 +2861,9 @@ void SwDBManager::InsertText(SwWrtShell& rSh,
{
{
pDlg
->
DataToDoc
(
aSelection
,
xSource
,
xConnection
,
xResSet
);
pDlg
->
DataToDoc
(
aSelection
,
xSource
,
xConnection
,
xResSet
);
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
e
)
{
{
OSL_FAIL
(
"exception caught"
);
SAL_WARN
(
"sw.mailmerge"
,
"exception caught: "
<<
e
.
Message
);
}
}
}
}
}
}
...
@@ -2878,9 +2879,9 @@ uno::Reference<XDataSource> SwDBManager::getDataSourceAsParent(const uno::Refere
...
@@ -2878,9 +2879,9 @@ uno::Reference<XDataSource> SwDBManager::getDataSourceAsParent(const uno::Refere
if
(
!
xSource
.
is
()
)
if
(
!
xSource
.
is
()
)
xSource
=
getDataSource
(
_sDataSourceName
,
::
comphelper
::
getProcessComponentContext
());
xSource
=
getDataSource
(
_sDataSourceName
,
::
comphelper
::
getProcessComponentContext
());
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
e
)
{
{
OSL_FAIL
(
"exception in getDataSourceAsParent caught"
);
SAL_WARN
(
"sw.mailmerge"
,
"exception caught in getDataSourceAsParent(): "
<<
e
.
Message
);
}
}
return
xSource
;
return
xSource
;
}
}
...
@@ -2917,9 +2918,9 @@ uno::Reference<XResultSet> SwDBManager::createCursor(const OUString& _sDataSourc
...
@@ -2917,9 +2918,9 @@ uno::Reference<XResultSet> SwDBManager::createCursor(const OUString& _sDataSourc
}
}
}
}
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
e
)
{
{
OSL_FAIL
(
"Caught exception while creating a new RowSet!"
);
SAL_WARN
(
"sw.mailmerge"
,
"Caught exception while creating a new RowSet: "
<<
e
.
Message
);
}
}
return
xResultSet
;
return
xResultSet
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment