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
3090d96f
Kaydet (Commit)
3090d96f
authored
Ara 17, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmerge: store the original exception in the cause field properly
Change-Id: I154b8b80aabd824edc62a7fdd831074fcf5cb21b
üst
a96c308e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
OfficeDocumentException.java
...noffice/xmerge/converter/xml/OfficeDocumentException.java
+12
-14
No files found.
xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocumentException.java
Dosyayı görüntüle @
3090d96f
...
...
@@ -33,16 +33,22 @@ import org.openoffice.xmerge.util.Resources;
*/
public
final
class
OfficeDocumentException
extends
IOException
{
private
StringBuffer
message
=
null
;
/**
* Constructor, capturing additional information from the {@code SAXException}.
*
* @param e The {@code SAXException}.
*/
public
OfficeDocumentException
(
SAXException
e
)
{
super
(
e
.
toString
());
message
=
new
StringBuffer
();
super
(
constructMessage
(
e
));
if
(
e
.
getException
()
!=
null
)
{
initCause
(
e
.
getException
());
}
else
{
initCause
(
e
);
}
}
private
static
String
constructMessage
(
SAXException
e
)
{
StringBuffer
message
=
new
StringBuffer
();
if
(
e
instanceof
SAXParseException
)
{
String
msgParseError
=
Resources
.
getInstance
().
getString
(
"PARSE_ERROR"
);
...
...
@@ -80,6 +86,7 @@ public final class OfficeDocumentException extends IOException {
if
(
ex
!=
null
)
{
message
.
append
(
ex
.
getMessage
());
}
return
message
.
toString
();
}
/**
...
...
@@ -99,15 +106,7 @@ public final class OfficeDocumentException extends IOException {
*/
public
OfficeDocumentException
(
Exception
e
)
{
super
(
e
.
getMessage
());
initCause
(
e
);
}
/**
* Returns the message value for the {@code Exception}.
*
* @return The message value for the {@code Exception}.
*/
@Override
public
String
getMessage
()
{
return
message
.
toString
()
+
super
.
getMessage
();
}
}
\ No newline at end of file
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