mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
Reverting to IOException(String) since IOException(Throwable) turns out to be unavailable in JDK1.4
This commit is contained in:
parent
928cb62bc2
commit
38a8e98b19
1 changed files with 6 additions and 6 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue