Throwing Exception instead of IOException on non-I/O error.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2501 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/rfbplayer/RfbProto.java b/java/src/com/tightvnc/rfbplayer/RfbProto.java
index daff66c..4cada13 100644
--- a/java/src/com/tightvnc/rfbplayer/RfbProto.java
+++ b/java/src/com/tightvnc/rfbplayer/RfbProto.java
@@ -80,16 +80,16 @@
   // Constructor.
   //
 
-  RfbProto(InputStream is) throws IOException {
+  RfbProto(InputStream is) throws Exception {
     newInputStream(is);
   }
 
-  public void newInputStream(InputStream is) throws IOException {
+  public void newInputStream(InputStream is) throws Exception {
     this.is = new DataInputStream(is);
 
     readVersionMsg();
     if (readAuthScheme() != NoAuth) {
-      throw new IOException("Wrong authentication type in the session file");
+      throw new Exception("Wrong authentication type in the session file");
     }
     readServerInit();
   }
@@ -156,7 +156,7 @@
   boolean bigEndian, trueColour;
   int redMax, greenMax, blueMax, redShift, greenShift, blueShift;
 
-  void readServerInit() throws IOException {
+  void readServerInit() throws Exception {
     framebufferWidth = is.readUnsignedShort();
     framebufferHeight = is.readUnsignedShort();
     bitsPerPixel = is.readUnsignedByte();