diff --git a/wince/org.eclipse.rse.subsystems.wince/src/org/eclipse/rse/internal/services/wince/files/WinCEFileService.java b/wince/org.eclipse.rse.subsystems.wince/src/org/eclipse/rse/internal/services/wince/files/WinCEFileService.java index a71dcbf790f..dae3004b5d6 100644 --- a/wince/org.eclipse.rse.subsystems.wince/src/org/eclipse/rse/internal/services/wince/files/WinCEFileService.java +++ b/wince/org.eclipse.rse.subsystems.wince/src/org/eclipse/rse/internal/services/wince/files/WinCEFileService.java @@ -498,7 +498,7 @@ public class WinCEFileService extends AbstractFileService implements IWinCEServi int br = session.readFile(handle, b); return (br == -1) ? -1 : b[0]; } catch (RapiException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } } @@ -506,7 +506,7 @@ public class WinCEFileService extends AbstractFileService implements IWinCEServi try { return session.readFile(handle, b, off, len); } catch (RapiException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } } @@ -514,7 +514,7 @@ public class WinCEFileService extends AbstractFileService implements IWinCEServi try { session.closeHandle(handle); } catch (RapiException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } } @@ -534,7 +534,7 @@ public class WinCEFileService extends AbstractFileService implements IWinCEServi try { session.writeFile(handle, new byte[] {(byte)b}); } catch (RapiException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } } @@ -542,7 +542,7 @@ public class WinCEFileService extends AbstractFileService implements IWinCEServi try { session.writeFile(handle, b, off, len); } catch (RapiException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } } @@ -550,7 +550,7 @@ public class WinCEFileService extends AbstractFileService implements IWinCEServi try { session.closeHandle(handle); } catch (RapiException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } } }