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
6c60aa31
Kaydet (Commit)
6c60aa31
authored
Kas 25, 2016
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
introduce DBG_UNHANDLED_EXCEPTION_WHEN for calls with an explanatory message
Change-Id: Ic80f2ed2c0fdff20d1ee1968bec2840bf914fb5e
üst
9d2f3091
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
diagnose_ex.h
include/tools/diagnose_ex.h
+7
-1
debug.cxx
tools/source/debug/debug.cxx
+7
-1
No files found.
include/tools/diagnose_ex.h
Dosyayı görüntüle @
6c60aa31
...
@@ -27,7 +27,9 @@
...
@@ -27,7 +27,9 @@
#include <tools/toolsdllapi.h>
#include <tools/toolsdllapi.h>
TOOLS_DLLPUBLIC
void
DbgUnhandledException
(
const
css
::
uno
::
Any
&
caughtException
,
const
char
*
currentFunction
,
const
char
*
fileAndLineNo
);
TOOLS_DLLPUBLIC
void
DbgUnhandledException
(
const
css
::
uno
::
Any
&
caughtException
,
const
char
*
currentFunction
,
const
char
*
fileAndLineNo
,
const
char
*
explanatory
=
nullptr
);
#if OSL_DEBUG_LEVEL > 0
#if OSL_DEBUG_LEVEL > 0
#include <com/sun/star/configuration/CorruptedConfigurationException.hpp>
#include <com/sun/star/configuration/CorruptedConfigurationException.hpp>
...
@@ -43,8 +45,12 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any& caughtException,
...
@@ -43,8 +45,12 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any& caughtException,
#define DBG_UNHANDLED_EXCEPTION() \
#define DBG_UNHANDLED_EXCEPTION() \
DbgUnhandledException( ::cppu::getCaughtException(), OSL_THIS_FUNC, SAL_DETAIL_WHERE);
DbgUnhandledException( ::cppu::getCaughtException(), OSL_THIS_FUNC, SAL_DETAIL_WHERE);
#define DBG_UNHANDLED_EXCEPTION_WHEN(explain) \
DbgUnhandledException( ::cppu::getCaughtException(), OSL_THIS_FUNC, SAL_DETAIL_WHERE, explain);
#else // OSL_DEBUG_LEVEL
#else // OSL_DEBUG_LEVEL
#define DBG_UNHANDLED_EXCEPTION()
#define DBG_UNHANDLED_EXCEPTION()
#define DBG_UNHANDLED_EXCEPTION_WHEN(explain)
#endif // OSL_DEBUG_LEVEL
#endif // OSL_DEBUG_LEVEL
/** This macro asserts the given condition (in debug mode), and throws
/** This macro asserts the given condition (in debug mode), and throws
...
...
tools/source/debug/debug.cxx
Dosyayı görüntüle @
6c60aa31
...
@@ -76,10 +76,16 @@ void DbgTestSolarMutex()
...
@@ -76,10 +76,16 @@ void DbgTestSolarMutex()
#endif
#endif
void
DbgUnhandledException
(
const
css
::
uno
::
Any
&
caught
,
const
char
*
currentFunction
,
const
char
*
fileAndLineNo
)
void
DbgUnhandledException
(
const
css
::
uno
::
Any
&
caught
,
const
char
*
currentFunction
,
const
char
*
fileAndLineNo
,
const
char
*
explanatory
)
{
{
OString
sMessage
(
"DBG_UNHANDLED_EXCEPTION in "
);
OString
sMessage
(
"DBG_UNHANDLED_EXCEPTION in "
);
sMessage
+=
currentFunction
;
sMessage
+=
currentFunction
;
if
(
explanatory
)
{
sMessage
+=
"
\n
when: "
;
sMessage
+=
explanatory
;
}
sMessage
+=
"
\n
type: "
;
sMessage
+=
"
\n
type: "
;
sMessage
+=
OUStringToOString
(
caught
.
getValueTypeName
(),
osl_getThreadTextEncoding
()
);
sMessage
+=
OUStringToOString
(
caught
.
getValueTypeName
(),
osl_getThreadTextEncoding
()
);
css
::
uno
::
Exception
exception
;
css
::
uno
::
Exception
exception
;
...
...
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