aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2002-05-20 13:05:42 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2002-05-20 13:05:42 +0000
commitf392f440f0aee4e783c9eb3b73b0740cd9e4a74a (patch)
tree67f23089d72774ae620cbf1be4aed46f509b0c8c /java/src
parent903009eca89d779b78201c0015073d60f80c6306 (diff)
downloadtigervnc-f392f440f0aee4e783c9eb3b73b0740cd9e4a74a.tar.gz
tigervnc-f392f440f0aee4e783c9eb3b73b0740cd9e4a74a.zip
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
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/tightvnc/rfbplayer/RfbProto.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/tightvnc/rfbplayer/RfbProto.java b/java/src/com/tightvnc/rfbplayer/RfbProto.java
index daff66c3..4cada134 100644
--- a/java/src/com/tightvnc/rfbplayer/RfbProto.java
+++ b/java/src/com/tightvnc/rfbplayer/RfbProto.java
@@ -80,16 +80,16 @@ class RfbProto {
// 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 @@ class RfbProto {
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();