FileDescriptor.java (sync): Add real exception to SyncFailedException.

2005-02-21  Mark Wielaard  <mark@klomp.org>

	* java/io/FileDescriptor.java (sync): Add real exception to
	SyncFailedException.

From-SVN: r95324
This commit is contained in:
Mark Wielaard 2005-02-21 08:31:01 +00:00 committed by Michael Koch
parent 171a3e0c44
commit 5fd7c1e7fa
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-02-21 Mark Wielaard <mark@klomp.org>
* java/io/FileDescriptor.java (sync): Add real exception to
SyncFailedException.
2005-02-21 Michael Koch <konqueror@gmx.de>
* java/io/InputStreamReader.java:

View File

@ -120,7 +120,7 @@ public final class FileDescriptor
if (ex instanceof SyncFailedException)
throw (SyncFailedException) ex;
else
throw new SyncFailedException(ex.getMessage());
throw new SyncFailedException(ex.toString());
}
}
}