diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-16 12:49:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-16 12:49:30 +0200 |
commit | 28114b8d5da8a03c59a6ed51a63fe7706433ca89 (patch) | |
tree | c21cb08b670a3a3d198ce8f2e8e5751c85b64f17 /odk | |
parent | 2217eefca975e202ce17c71f1a5b07bd588114a7 (diff) |
There is no com.sun.star.lib.util.ExceptionHelper
Regression introduced with 6884ef6317ddc29a713a342fb102e28ebc8fa5cc "java: don't
catch and then just rethrow an exception."
Change-Id: I626eaefc7846e152dfb4cc105d665c9ccca68c08
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java b/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java index e51ed23e6970..cca0c94033b7 100644 --- a/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java +++ b/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java @@ -32,7 +32,6 @@ import com.sun.star.io.XTruncate; import com.sun.star.lang.XComponent; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.lib.uno.helper.WeakBase; -import com.sun.star.lib.util.ExceptionHelper; import com.sun.star.uno.AnyConverter; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; @@ -116,7 +115,9 @@ public final class OwnEmbeddedObject extends WeakBase } catch( com.sun.star.uno.Exception e ) { - throw ExceptionHelper.initCause(new com.sun.star.io.IOException( "Error while switching object storage!" ), e); + com.sun.star.io.IOException e2 = new com.sun.star.io.IOException( "Error while switching object storage!" ); + e2.initCause(e); + throw e2; } } } @@ -173,7 +174,9 @@ public final class OwnEmbeddedObject extends WeakBase } catch( com.sun.star.uno.Exception e ) { - throw ExceptionHelper.initCause(new com.sun.star.io.IOException( "Error while switching object storage!" ), e); + com.sun.star.io.IOException e2 = new com.sun.star.io.IOException( "Error while switching object storage!" ); + e2.initCause(e); + throw e2; } } @@ -265,7 +268,9 @@ public final class OwnEmbeddedObject extends WeakBase } catch( com.sun.star.uno.Exception e ) { - throw ExceptionHelper.initCause(new com.sun.star.io.IOException( "Error while reading one of object streams!" ), e); + com.sun.star.io.IOException e2 = new com.sun.star.io.IOException( "Error while reading one of object streams!" ); + e2.initCause(e); + throw e2; } } |