aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rdr/WarningException.java
diff options
context:
space:
mode:
authorBrian P. Hinz <bphinz@users.sf.net>2015-09-20 23:00:52 -0400
committerBrian P. Hinz <bphinz@users.sf.net>2015-09-20 23:00:52 -0400
commitb7f18a36a47715910f918d13a8945baac89d0f73 (patch)
tree63b4f8e0e529f102f3052f41fe1176fad4cc4fce /java/com/tigervnc/rdr/WarningException.java
parent395a93418b6acdb6a02ab575c540152dc81295c5 (diff)
downloadtigervnc-b7f18a36a47715910f918d13a8945baac89d0f73.tar.gz
tigervnc-b7f18a36a47715910f918d13a8945baac89d0f73.zip
Don't exit completely if single viewer declines server cert
Prevents viewer from exiting completely just because user declined to trust the server certificate for a single connection. Copied from TurboVNC.
Diffstat (limited to 'java/com/tigervnc/rdr/WarningException.java')
-rw-r--r--java/com/tigervnc/rdr/WarningException.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/java/com/tigervnc/rdr/WarningException.java b/java/com/tigervnc/rdr/WarningException.java
new file mode 100644
index 00000000..43b9a316
--- /dev/null
+++ b/java/com/tigervnc/rdr/WarningException.java
@@ -0,0 +1,30 @@
+/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
+ * Copyright (C) 2011 Brian P. Hinz
+ * Copyright (C) 2012 D. R. Commander. All Rights Reserved.
+ *
+ * This is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this software; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+ * USA.
+ */
+
+package com.tigervnc.rdr;
+
+/* We use this to communicate exceptions that are generally the result of user
+ actions. */
+
+public class WarningException extends RuntimeException {
+ public WarningException(String s) {
+ super(s);
+ }
+}