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
b2f69f62
Kaydet (Commit)
b2f69f62
authored
Eki 16, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: when rethrowing, store the original exception
Change-Id: I14666493e72da177fcfff1895ef3206f0e13cc01
üst
5cba8d44
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
126 additions
and
100 deletions
+126
-100
SecurityDialog.java
...om/sun/star/script/framework/security/SecurityDialog.java
+3
-7
ScriptBrowseNode.java
...om/sun/star/script/framework/browse/ScriptBrowseNode.java
+3
-19
Parcel.java
.../java/com/sun/star/script/framework/container/Parcel.java
+2
-2
XMLParserFactory.java
...sun/star/script/framework/container/XMLParserFactory.java
+24
-12
UCBStreamHandler.java
...va/com/sun/star/script/framework/io/UCBStreamHandler.java
+8
-6
XInputStreamWrapper.java
...com/sun/star/script/framework/io/XInputStreamWrapper.java
+22
-10
XOutputStreamWrapper.java
...om/sun/star/script/framework/io/XOutputStreamWrapper.java
+22
-10
XStorageHelper.java
...java/com/sun/star/script/framework/io/XStorageHelper.java
+4
-2
ScriptProviderForBeanShell.java
...mework/provider/beanshell/ScriptProviderForBeanShell.java
+1
-3
ScriptProviderForJavaScript.java
...work/provider/javascript/ScriptProviderForJavaScript.java
+1
-3
FileAccess.java
wizards/com/sun/star/wizards/common/FileAccess.java
+1
-2
InvalidQueryException.java
...ds/com/sun/star/wizards/common/InvalidQueryException.java
+8
-1
NoValidPathException.java
...rds/com/sun/star/wizards/common/NoValidPathException.java
+10
-0
NumericalHelper.java
wizards/com/sun/star/wizards/common/NumericalHelper.java
+10
-10
Resource.java
wizards/com/sun/star/wizards/common/Resource.java
+3
-6
SystemDialog.java
wizards/com/sun/star/wizards/common/SystemDialog.java
+1
-2
RecordParser.java
wizards/com/sun/star/wizards/db/RecordParser.java
+1
-2
ReportLayouter.java
wizards/com/sun/star/wizards/report/ReportLayouter.java
+1
-2
DesignTemplate.java
...sun/star/wizards/reportbuilder/layout/DesignTemplate.java
+1
-1
No files found.
scripting/java/Framework/com/sun/star/script/framework/security/SecurityDialog.java
Dosyayı görüntüle @
b2f69f62
...
@@ -165,7 +165,7 @@ public class SecurityDialog extends WeakBase implements
...
@@ -165,7 +165,7 @@ public class SecurityDialog extends WeakBase implements
try
{
try
{
checkBoxPath
=
AnyConverter
.
toString
(
args
[
0
]);
checkBoxPath
=
AnyConverter
.
toString
(
args
[
0
]);
}
catch
(
IllegalArgumentException
e
)
{
}
catch
(
IllegalArgumentException
e
)
{
throw
new
RuntimeException
(
"SecurityDialog::initialize: "
+
e
.
getMessage
()
);
throw
new
RuntimeException
(
e
);
}
}
LogUtils
.
DEBUG
(
"path: "
+
checkBoxPath
);
LogUtils
.
DEBUG
(
"path: "
+
checkBoxPath
);
...
@@ -189,13 +189,9 @@ public class SecurityDialog extends WeakBase implements
...
@@ -189,13 +189,9 @@ public class SecurityDialog extends WeakBase implements
try
{
try
{
_xDialog
=
createDialog
();
_xDialog
=
createDialog
();
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
LogUtils
.
DEBUG
(
"Couldn't create dialog"
);
throw
new
RuntimeException
(
e
);
LogUtils
.
DEBUG
(
"uno message: "
+
e
.
getMessage
());
throw
new
RuntimeException
(
e
.
getMessage
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
DEBUG
(
"Couldn't create dialog"
);
throw
new
RuntimeException
(
e
);
LogUtils
.
DEBUG
(
"message: "
+
e
.
getMessage
());
throw
new
RuntimeException
(
e
.
getMessage
());
}
}
}
}
...
...
scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java
Dosyayı görüntüle @
b2f69f62
...
@@ -185,16 +185,12 @@ public class ScriptBrowseNode extends PropertySet implements
...
@@ -185,16 +185,12 @@ public class ScriptBrowseNode extends PropertySet implements
try
{
try
{
data
=
(
ScriptMetaData
)
parent
.
getByName
(
name
);
data
=
(
ScriptMetaData
)
parent
.
getByName
(
name
);
}
catch
(
NoSuchElementException
nse
)
{
}
catch
(
NoSuchElementException
nse
)
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
nse
,
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
name
+
" does not exist or can't be found "
);
name
+
" does not exist or can't be found "
);
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
wte
)
{
}
catch
(
com
.
sun
.
star
.
lang
.
WrappedTargetException
wte
)
{
// rethrow
// rethrow
throw
new
InvocationTargetException
(
throw
new
InvocationTargetException
(
"Scripting framework editing script "
,
null
,
wte
.
TargetException
);
"Scripting framework editing script "
,
null
,
wte
.
TargetException
);
}
}
provider
.
getScriptEditor
().
edit
(
ctxt
,
data
);
provider
.
getScriptEditor
().
edit
(
ctxt
,
data
);
...
@@ -212,16 +208,12 @@ public class ScriptBrowseNode extends PropertySet implements
...
@@ -212,16 +208,12 @@ public class ScriptBrowseNode extends PropertySet implements
parent
.
removeByName
(
name
);
parent
.
removeByName
(
name
);
result
=
new
Any
(
new
Type
(
Boolean
.
class
),
Boolean
.
TRUE
);
result
=
new
Any
(
new
Type
(
Boolean
.
class
),
Boolean
.
TRUE
);
}
catch
(
NoSuchElementException
nse
)
{
}
catch
(
NoSuchElementException
nse
)
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
nse
,
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
name
+
" does not exist or can't be found "
);
name
+
" does not exist or can't be found "
);
}
catch
(
WrappedTargetException
wte
)
{
}
catch
(
WrappedTargetException
wte
)
{
// rethrow
// rethrow
throw
new
InvocationTargetException
(
throw
new
InvocationTargetException
(
"Scripting framework deleting script "
,
null
,
wte
.
TargetException
);
"Scripting framework deleting script "
,
null
,
wte
.
TargetException
);
}
}
}
else
if
(
aFunctionName
.
equals
(
"Renamable"
))
{
}
else
if
(
aFunctionName
.
equals
(
"Renamable"
))
{
...
@@ -263,28 +255,20 @@ public class ScriptBrowseNode extends PropertySet implements
...
@@ -263,28 +255,20 @@ public class ScriptBrowseNode extends PropertySet implements
name
=
languageName
;
name
=
languageName
;
result
=
new
Any
(
new
Type
(
XBrowseNode
.
class
),
this
);
result
=
new
Any
(
new
Type
(
XBrowseNode
.
class
),
this
);
}
catch
(
NoSuchElementException
nse
)
{
}
catch
(
NoSuchElementException
nse
)
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
nse
,
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
name
+
" does not exist or can't be found "
);
name
+
" does not exist or can't be found "
);
}
catch
(
ElementExistException
eee
)
{
}
catch
(
ElementExistException
eee
)
{
// rethrow
// rethrow
throw
new
InvocationTargetException
(
throw
new
InvocationTargetException
(
"Scripting framework error renaming script "
,
null
,
eee
);
"Scripting framework error renaming script "
,
null
,
eee
);
}
catch
(
WrappedTargetException
wte
)
{
}
catch
(
WrappedTargetException
wte
)
{
// rethrow
// rethrow
throw
new
InvocationTargetException
(
throw
new
InvocationTargetException
(
"Scripting framework rename script "
,
null
,
wte
.
TargetException
);
"Scripting framework rename script "
,
null
,
wte
.
TargetException
);
}
}
}
else
{
}
else
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
"Function "
+
aFunctionName
+
" not supported."
);
"Function "
+
aFunctionName
+
" not supported."
);
}
}
return
result
;
return
result
;
...
...
scripting/java/com/sun/star/script/framework/container/Parcel.java
Dosyayı görüntüle @
b2f69f62
...
@@ -175,8 +175,8 @@ public class Parcel implements XNameContainer {
...
@@ -175,8 +175,8 @@ public class Parcel implements XNameContainer {
}
}
// TO DO should catch specified exceptions
// TO DO should catch specified exceptions
catch
(
Exception
e
)
{
catch
(
Exception
e
x
)
{
throw
new
com
.
sun
.
star
.
lang
.
WrappedTargetException
();
throw
new
com
.
sun
.
star
.
lang
.
WrappedTargetException
(
ex
);
}
}
}
}
...
...
scripting/java/com/sun/star/script/framework/container/XMLParserFactory.java
Dosyayı görüntüle @
b2f69f62
...
@@ -73,12 +73,18 @@ public class XMLParserFactory {
...
@@ -73,12 +73,18 @@ public class XMLParserFactory {
}
}
result
=
builder
.
parse
(
is
);
result
=
builder
.
parse
(
is
);
}
catch
(
SAXParseException
spe
)
{
}
catch
(
SAXParseException
ex1
)
{
throw
new
IOException
(
spe
.
getMessage
());
IOException
ex2
=
new
IOException
();
}
catch
(
SAXException
se
)
{
ex2
.
initCause
(
ex1
);
throw
new
IOException
(
se
.
getMessage
());
throw
ex2
;
}
catch
(
ParserConfigurationException
pce
)
{
}
catch
(
SAXException
ex1
)
{
throw
new
IOException
(
pce
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
catch
(
ParserConfigurationException
ex1
)
{
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
return
result
;
return
result
;
...
@@ -169,12 +175,18 @@ public class XMLParserFactory {
...
@@ -169,12 +175,18 @@ public class XMLParserFactory {
method
.
invoke
(
impl
,
new
Object
[]
{
doc
});
method
.
invoke
(
impl
,
new
Object
[]
{
doc
});
}
}
}
catch
(
NoSuchMethodException
ex
)
{
}
catch
(
NoSuchMethodException
ex1
)
{
throw
new
IOException
(
ex
.
getMessage
());
IOException
ex2
=
new
IOException
();
}
catch
(
ClassNotFoundException
ex
)
{
ex2
.
initCause
(
ex1
);
throw
new
IOException
(
ex
.
getMessage
());
throw
ex2
;
}
catch
(
Exception
ex
)
{
}
catch
(
ClassNotFoundException
ex1
)
{
throw
new
IOException
(
ex
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
catch
(
Exception
ex1
)
{
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
}
}
...
...
scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
Dosyayı görüntüle @
b2f69f62
...
@@ -255,12 +255,14 @@ public class UCBStreamHandler extends URLStreamHandler {
...
@@ -255,12 +255,14 @@ public class UCBStreamHandler extends URLStreamHandler {
}
}
result
=
new
ByteArrayInputStream
(
inputBytes
[
0
]);
result
=
new
ByteArrayInputStream
(
inputBytes
[
0
]);
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
LogUtils
.
DEBUG
(
"caught exception "
+
ioe
);
IOException
ex2
=
new
IOException
();
throw
new
IOException
(
ioe
.
getMessage
());
ex2
.
initCause
(
ex1
);
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
throw
ex2
;
LogUtils
.
DEBUG
(
"caught exception "
+
e
);
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
ex1
)
{
throw
new
IOException
(
e
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
finally
{
}
finally
{
if
(
xInputStream
!=
null
)
{
if
(
xInputStream
!=
null
)
{
try
{
try
{
...
...
scripting/java/com/sun/star/script/framework/io/XInputStreamWrapper.java
Dosyayı görüntüle @
b2f69f62
...
@@ -19,6 +19,7 @@ package com.sun.star.script.framework.io;
...
@@ -19,6 +19,7 @@ package com.sun.star.script.framework.io;
import
com.sun.star.io.XInputStream
;
import
com.sun.star.io.XInputStream
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
public
class
XInputStreamWrapper
extends
InputStream
{
public
class
XInputStreamWrapper
extends
InputStream
{
...
@@ -36,8 +37,10 @@ public class XInputStreamWrapper extends InputStream {
...
@@ -36,8 +37,10 @@ public class XInputStreamWrapper extends InputStream {
try
{
try
{
numRead
=
m_xInputStream
.
readBytes
(
byteRet
,
1
);
numRead
=
m_xInputStream
.
readBytes
(
byteRet
,
1
);
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
if
(
numRead
!=
1
)
{
if
(
numRead
!=
1
)
{
...
@@ -54,8 +57,10 @@ public class XInputStreamWrapper extends InputStream {
...
@@ -54,8 +57,10 @@ public class XInputStreamWrapper extends InputStream {
try
{
try
{
return
m_xInputStream
.
readBytes
(
byteRet
,
b
.
length
);
return
m_xInputStream
.
readBytes
(
byteRet
,
b
.
length
);
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
...
@@ -64,8 +69,10 @@ public class XInputStreamWrapper extends InputStream {
...
@@ -64,8 +69,10 @@ public class XInputStreamWrapper extends InputStream {
try
{
try
{
m_xInputStream
.
skipBytes
((
int
)
n
);
m_xInputStream
.
skipBytes
((
int
)
n
);
return
n
;
return
n
;
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
...
@@ -73,8 +80,10 @@ public class XInputStreamWrapper extends InputStream {
...
@@ -73,8 +80,10 @@ public class XInputStreamWrapper extends InputStream {
public
int
available
()
throws
java
.
io
.
IOException
{
public
int
available
()
throws
java
.
io
.
IOException
{
try
{
try
{
return
m_xInputStream
.
available
();
return
m_xInputStream
.
available
();
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
...
@@ -82,8 +91,10 @@ public class XInputStreamWrapper extends InputStream {
...
@@ -82,8 +91,10 @@ public class XInputStreamWrapper extends InputStream {
public
void
close
()
throws
java
.
io
.
IOException
{
public
void
close
()
throws
java
.
io
.
IOException
{
try
{
try
{
m_xInputStream
.
closeInput
();
m_xInputStream
.
closeInput
();
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
}
}
\ No newline at end of file
scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java
Dosyayı görüntüle @
b2f69f62
...
@@ -19,6 +19,7 @@ package com.sun.star.script.framework.io;
...
@@ -19,6 +19,7 @@ package com.sun.star.script.framework.io;
import
com.sun.star.io.XOutputStream
;
import
com.sun.star.io.XOutputStream
;
import
java.io.IOException
;
import
java.io.OutputStream
;
import
java.io.OutputStream
;
public
class
XOutputStreamWrapper
extends
OutputStream
{
public
class
XOutputStreamWrapper
extends
OutputStream
{
...
@@ -40,8 +41,10 @@ public class XOutputStreamWrapper extends OutputStream {
...
@@ -40,8 +41,10 @@ public class XOutputStreamWrapper extends OutputStream {
try
{
try
{
m_xOutputStream
.
writeBytes
(
bytes
);
m_xOutputStream
.
writeBytes
(
bytes
);
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
...
@@ -54,8 +57,10 @@ public class XOutputStreamWrapper extends OutputStream {
...
@@ -54,8 +57,10 @@ public class XOutputStreamWrapper extends OutputStream {
try
{
try
{
m_xOutputStream
.
writeBytes
(
b
);
m_xOutputStream
.
writeBytes
(
b
);
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
@Override
@Override
...
@@ -69,8 +74,10 @@ public class XOutputStreamWrapper extends OutputStream {
...
@@ -69,8 +74,10 @@ public class XOutputStreamWrapper extends OutputStream {
try
{
try
{
m_xOutputStream
.
writeBytes
(
bytes
);
m_xOutputStream
.
writeBytes
(
bytes
);
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
...
@@ -82,8 +89,10 @@ public class XOutputStreamWrapper extends OutputStream {
...
@@ -82,8 +89,10 @@ public class XOutputStreamWrapper extends OutputStream {
try
{
try
{
m_xOutputStream
.
flush
();
m_xOutputStream
.
flush
();
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
...
@@ -95,8 +104,10 @@ public class XOutputStreamWrapper extends OutputStream {
...
@@ -95,8 +104,10 @@ public class XOutputStreamWrapper extends OutputStream {
try
{
try
{
m_xOutputStream
.
closeOutput
();
m_xOutputStream
.
closeOutput
();
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ex1
)
{
throw
new
java
.
io
.
IOException
(
ioe
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
}
}
\ No newline at end of file
scripting/java/com/sun/star/script/framework/io/XStorageHelper.java
Dosyayı görüntüle @
b2f69f62
...
@@ -153,9 +153,11 @@ public class XStorageHelper implements XEventListener {
...
@@ -153,9 +153,11 @@ public class XStorageHelper implements XEventListener {
}
}
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
}
catch
(
com
.
sun
.
star
.
io
.
IOException
ioe
)
{
disposeObject
();
disposeObject
();
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
x1
)
{
disposeObject
();
disposeObject
();
throw
new
IOException
(
e
.
getMessage
());
IOException
ex2
=
new
IOException
();
ex2
.
initCause
(
ex1
);
throw
ex2
;
}
}
}
}
...
...
scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
Dosyayı görüntüle @
b2f69f62
...
@@ -144,9 +144,7 @@ class ScriptImpl implements XScript {
...
@@ -144,9 +144,7 @@ class ScriptImpl implements XScript {
try
{
try
{
this
.
m_xMultiComponentFactory
=
m_xContext
.
getServiceManager
();
this
.
m_xMultiComponentFactory
=
m_xContext
.
getServiceManager
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
DEBUG
(
LogUtils
.
getTrace
(
e
));
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
(
e
);
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
(
"Error constructing ScriptImpl [beanshell]: "
+
e
.
getMessage
());
}
}
LogUtils
.
DEBUG
(
"ScriptImpl [beanshell] script data = "
+
metaData
);
LogUtils
.
DEBUG
(
"ScriptImpl [beanshell] script data = "
+
metaData
);
...
...
scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
Dosyayı görüntüle @
b2f69f62
...
@@ -139,9 +139,7 @@ class ScriptImpl implements XScript {
...
@@ -139,9 +139,7 @@ class ScriptImpl implements XScript {
try
{
try
{
this
.
m_xMultiComponentFactory
=
m_xContext
.
getServiceManager
();
this
.
m_xMultiComponentFactory
=
m_xContext
.
getServiceManager
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
LogUtils
.
DEBUG
(
LogUtils
.
getTrace
(
e
));
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
(
e
);
throw
new
com
.
sun
.
star
.
uno
.
RuntimeException
(
"Error constructing ScriptImpl: [javascript]"
);
}
}
LogUtils
.
DEBUG
(
"ScriptImpl [javascript] script data = "
+
metaData
);
LogUtils
.
DEBUG
(
"ScriptImpl [javascript] script data = "
+
metaData
);
...
...
wizards/com/sun/star/wizards/common/FileAccess.java
Dosyayı görüntüle @
b2f69f62
...
@@ -621,8 +621,7 @@ public class FileAccess
...
@@ -621,8 +621,7 @@ public class FileAccess
}
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
{
e
.
printStackTrace
();
throw
new
NoValidPathException
(
null
,
"Internal error."
,
e
);
throw
new
NoValidPathException
(
null
,
"Internal error."
);
}
}
for
(
int
j
=
0
;
j
<
FolderName
.
size
();
j
++)
for
(
int
j
=
0
;
j
<
FolderName
.
size
();
j
++)
...
...
wizards/com/sun/star/wizards/common/InvalidQueryException.java
Dosyayı görüntüle @
b2f69f62
...
@@ -21,10 +21,17 @@ import com.sun.star.lang.XMultiServiceFactory;
...
@@ -21,10 +21,17 @@ import com.sun.star.lang.XMultiServiceFactory;
public
class
InvalidQueryException
extends
java
.
lang
.
Throwable
public
class
InvalidQueryException
extends
java
.
lang
.
Throwable
{
{
// TODO don't show messages in Exce
tions
// TODO don't show messages in Excep
tions
public
InvalidQueryException
(
XMultiServiceFactory
xMSF
,
String
sCommand
)
public
InvalidQueryException
(
XMultiServiceFactory
xMSF
,
String
sCommand
)
{
{
final
int
RID_REPORT
=
2400
;
final
int
RID_REPORT
=
2400
;
SystemDialog
.
showErrorBox
(
xMSF
,
"ReportWizard"
,
"dbw"
,
RID_REPORT
+
65
,
"<STATEMENT>"
,
sCommand
);
// Querycreationnotpossible
SystemDialog
.
showErrorBox
(
xMSF
,
"ReportWizard"
,
"dbw"
,
RID_REPORT
+
65
,
"<STATEMENT>"
,
sCommand
);
// Querycreationnotpossible
}
}
// TODO don't show messages in Exceptions
public
InvalidQueryException
(
XMultiServiceFactory
xMSF
,
String
sCommand
,
Throwable
cause
)
{
super
(
cause
);
final
int
RID_REPORT
=
2400
;
SystemDialog
.
showErrorBox
(
xMSF
,
"ReportWizard"
,
"dbw"
,
RID_REPORT
+
65
,
"<STATEMENT>"
,
sCommand
);
// Querycreationnotpossible
}
}
}
wizards/com/sun/star/wizards/common/NoValidPathException.java
Dosyayı görüntüle @
b2f69f62
...
@@ -31,4 +31,14 @@ public class NoValidPathException extends Exception
...
@@ -31,4 +31,14 @@ public class NoValidPathException extends Exception
SystemDialog
.
showErrorBox
(
xMSF
,
"dbwizres"
,
"dbw"
,
521
);
// OfficePathnotavailable
SystemDialog
.
showErrorBox
(
xMSF
,
"dbwizres"
,
"dbw"
,
521
);
// OfficePathnotavailable
}
}
}
}
public
NoValidPathException
(
XMultiServiceFactory
xMSF
,
String
_sText
,
Throwable
cause
)
{
super
(
_sText
,
cause
);
// TODO: NEVER open a dialog in an exception
if
(
xMSF
!=
null
)
{
SystemDialog
.
showErrorBox
(
xMSF
,
"dbwizres"
,
"dbw"
,
521
);
// OfficePathnotavailable
}
}
}
}
wizards/com/sun/star/wizards/common/NumericalHelper.java
Dosyayı görüntüle @
b2f69f62
...
@@ -119,7 +119,7 @@ public class NumericalHelper
...
@@ -119,7 +119,7 @@ public class NumericalHelper
}
}
catch
(
java
.
lang
.
NumberFormatException
e
)
catch
(
java
.
lang
.
NumberFormatException
e
)
{
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert to byte: "
+
aTypeObject
.
aValue
);
"Cannot convert to byte: "
+
aTypeObject
.
aValue
);
}
}
break
;
break
;
...
@@ -181,7 +181,7 @@ public class NumericalHelper
...
@@ -181,7 +181,7 @@ public class NumericalHelper
}
}
catch
(
java
.
lang
.
NumberFormatException
e
)
catch
(
java
.
lang
.
NumberFormatException
e
)
{
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert to char: "
+
aTypeObject
.
aValue
);
"Cannot convert to char: "
+
aTypeObject
.
aValue
);
}
}
break
;
break
;
...
@@ -234,7 +234,7 @@ public class NumericalHelper
...
@@ -234,7 +234,7 @@ public class NumericalHelper
}
}
catch
(
java
.
lang
.
NumberFormatException
e
)
catch
(
java
.
lang
.
NumberFormatException
e
)
{
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
}
}
break
;
break
;
...
@@ -423,7 +423,7 @@ public class NumericalHelper
...
@@ -423,7 +423,7 @@ public class NumericalHelper
}
}
catch
(
java
.
lang
.
NumberFormatException
e
)
catch
(
java
.
lang
.
NumberFormatException
e
)
{
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert to int: "
+
aTypeObject
.
aValue
);
"Cannot convert to int: "
+
aTypeObject
.
aValue
);
}
}
break
;
break
;
...
@@ -476,7 +476,7 @@ public class NumericalHelper
...
@@ -476,7 +476,7 @@ public class NumericalHelper
}
}
catch
(
java
.
lang
.
NumberFormatException
e
)
catch
(
java
.
lang
.
NumberFormatException
e
)
{
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
}
}
break
;
break
;
...
@@ -529,7 +529,7 @@ public class NumericalHelper
...
@@ -529,7 +529,7 @@ public class NumericalHelper
}
}
catch
(
java
.
lang
.
NumberFormatException
e
)
catch
(
java
.
lang
.
NumberFormatException
e
)
{
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
}
}
break
;
break
;
...
@@ -582,7 +582,7 @@ public class NumericalHelper
...
@@ -582,7 +582,7 @@ public class NumericalHelper
}
}
catch
(
java
.
lang
.
NumberFormatException
e
)
catch
(
java
.
lang
.
NumberFormatException
e
)
{
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
}
}
break
;
break
;
...
@@ -683,7 +683,7 @@ public class NumericalHelper
...
@@ -683,7 +683,7 @@ public class NumericalHelper
}
}
catch
(
java
.
lang
.
NumberFormatException
e
)
catch
(
java
.
lang
.
NumberFormatException
e
)
{
{
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
"Cannot convert to short: "
+
aTypeObject
.
aValue
);
}
}
break
;
break
;
...
@@ -1314,8 +1314,8 @@ public class NumericalHelper
...
@@ -1314,8 +1314,8 @@ public class NumericalHelper
catch
(
java
.
lang
.
ClassCastException
e
)
catch
(
java
.
lang
.
ClassCastException
e
)
{
{
// unknown type cannot be converted
// unknown type cannot be converted
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
throw
new
com
.
sun
.
star
.
lang
.
IllegalArgumentException
(
e
,
"Cannot convert unknown type
: '"
+
e
.
getMessage
()
+
"'"
);
"Cannot convert unknown type
"
+
array
.
getClass
()
);
}
}
}
}
return
aShortVal
;
return
aShortVal
;
...
...
wizards/com/sun/star/wizards/common/Resource.java
Dosyayı görüntüle @
b2f69f62
...
@@ -79,8 +79,7 @@ public class Resource
...
@@ -79,8 +79,7 @@ public class Resource
}
}
catch
(
Exception
exception
)
catch
(
Exception
exception
)
{
{
exception
.
printStackTrace
();
throw
new
java
.
lang
.
IllegalArgumentException
(
"Resource with ID not "
+
String
.
valueOf
(
nID
)
+
"not found"
,
exception
);
throw
new
java
.
lang
.
IllegalArgumentException
(
"Resource with ID not "
+
String
.
valueOf
(
nID
)
+
"not found"
);
}
}
}
}
...
@@ -92,8 +91,7 @@ public class Resource
...
@@ -92,8 +91,7 @@ public class Resource
}
}
catch
(
Exception
exception
)
catch
(
Exception
exception
)
{
{
exception
.
printStackTrace
();
throw
new
java
.
lang
.
IllegalArgumentException
(
"Resource with ID not "
+
String
.
valueOf
(
nID
)
+
"not found"
,
exception
);
throw
new
java
.
lang
.
IllegalArgumentException
(
"Resource with ID not "
+
String
.
valueOf
(
nID
)
+
"not found"
);
}
}
}
}
...
@@ -110,8 +108,7 @@ public class Resource
...
@@ -110,8 +108,7 @@ public class Resource
}
}
catch
(
Exception
exception
)
catch
(
Exception
exception
)
{
{
exception
.
printStackTrace
(
System
.
err
);
throw
new
java
.
lang
.
IllegalArgumentException
(
"Resource with ID not"
+
String
.
valueOf
(
nID
)
+
"not found"
,
exception
);
throw
new
java
.
lang
.
IllegalArgumentException
(
"Resource with ID not"
+
String
.
valueOf
(
nID
)
+
"not found"
);
}
}
}
}
...
...
wizards/com/sun/star/wizards/common/SystemDialog.java
Dosyayı görüntüle @
b2f69f62
...
@@ -153,8 +153,7 @@ public class SystemDialog
...
@@ -153,8 +153,7 @@ public class SystemDialog
}
}
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
iae
)
catch
(
com
.
sun
.
star
.
lang
.
IllegalArgumentException
iae
)
{
{
iae
.
printStackTrace
();
throw
new
IllegalArgumentException
(
iae
);
throw
new
IllegalArgumentException
(
iae
.
getMessage
());
}
}
xFolderPicker
.
setTitle
(
title
);
xFolderPicker
.
setTitle
(
title
);
xFolderPicker
.
setDescription
(
description
);
xFolderPicker
.
setDescription
(
description
);
...
...
wizards/com/sun/star/wizards/db/RecordParser.java
Dosyayı görüntüle @
b2f69f62
...
@@ -221,8 +221,7 @@ public class RecordParser extends QueryMetaData
...
@@ -221,8 +221,7 @@ public class RecordParser extends QueryMetaData
}
}
catch
(
Exception
exception
)
catch
(
Exception
exception
)
{
{
exception
.
printStackTrace
(
System
.
err
);
throw
new
InvalidQueryException
(
xMSF
,
Command
,
exception
);
throw
new
InvalidQueryException
(
xMSF
,
Command
);
}
}
}
}
...
...
wizards/com/sun/star/wizards/report/ReportLayouter.java
Dosyayı görüntüle @
b2f69f62
...
@@ -420,8 +420,7 @@ public class ReportLayouter
...
@@ -420,8 +420,7 @@ public class ReportLayouter
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
ex
.
printStackTrace
();
throw
new
IllegalArgumentException
(
"Fatal Error: Loading template failed: searching fillins failed"
,
ex
);
throw
new
IllegalArgumentException
(
"Fatal Error: Loading template failed: searching fillins failed"
);
}
}
}
}
}
}
wizards/com/sun/star/wizards/reportbuilder/layout/DesignTemplate.java
Dosyayı görüntüle @
b2f69f62
...
@@ -276,7 +276,7 @@ public class DesignTemplate
...
@@ -276,7 +276,7 @@ public class DesignTemplate
{
{
// this should not happen
// this should not happen
a
=
null
;
a
=
null
;
throw
new
java
.
lang
.
RuntimeException
(
e
.
getMessage
()
);
throw
new
java
.
lang
.
RuntimeException
(
e
);
}
}
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
catch
(
com
.
sun
.
star
.
uno
.
Exception
e
)
{
{
...
...
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