Kaydet (Commit) 28114b8d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

There is no com.sun.star.lib.util.ExceptionHelper

Regression introduced with 6884ef63 "java: don't
catch and then just rethrow an exception."

Change-Id: I626eaefc7846e152dfb4cc105d665c9ccca68c08
üst 2217eefc
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment