aboutsummaryrefslogtreecommitdiffstats
path: root/java/com/tigervnc/rfb/AuthFailureException.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/com/tigervnc/rfb/AuthFailureException.java')
-rw-r--r--java/com/tigervnc/rfb/AuthFailureException.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/com/tigervnc/rfb/AuthFailureException.java b/java/com/tigervnc/rfb/AuthFailureException.java
index 542270cb..39dcd786 100644
--- a/java/com/tigervnc/rfb/AuthFailureException.java
+++ b/java/com/tigervnc/rfb/AuthFailureException.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 AuthFailureException extends Exception {
- public AuthFailureException(String s) { super(s); }
+ public AuthFailureException() { super("Authentication failure"); }
+ public AuthFailureException(String reason) {
+ super("Authentication failure: "+reason);
+ }
}