summaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rfb/ConnFailedException.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/rfb/ConnFailedException.java')
-rw-r--r--java/com/tigervnc/rfb/ConnFailedException.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/com/tigervnc/rfb/ConnFailedException.java b/java/com/tigervnc/rfb/ConnFailedException.java
index 7c329146..518ff9af 100644
--- a/java/com/tigervnc/rfb/ConnFailedException.java
+++ b/java/com/tigervnc/rfb/ConnFailedException.java
@@ -1,4 +1,5 @@
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
+ * Copyright (C) 2019 Brian P. Hinz
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,5 +20,8 @@
package com.tigervnc.rfb;
public class ConnFailedException extends Exception {
- public ConnFailedException(String s) { super(s); }
+ public ConnFailedException() { super("Connection failed"); }
+ public ConnFailedException(String reason) {
+ super("Connection faied: "+reason);
+ }
}