2006/unicorn/src/org/w3c/unicorn/util UnicornAuthenticator.java,1.1,1.2

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv32413/src/org/w3c/unicorn/util

Modified Files:
	UnicornAuthenticator.java 
Log Message:
added NoClassDefFoundError catching

Index: UnicornAuthenticator.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/UnicornAuthenticator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- UnicornAuthenticator.java	23 Sep 2009 14:09:39 -0000	1.1
+++ UnicornAuthenticator.java	23 Sep 2009 15:19:36 -0000	1.2
@@ -31,6 +31,8 @@
 			}
 		} catch (HeadlessException e) {
 			Framework.logger.error("Before sending mails you must specify a username and a password in mail.properties. If your SMTP server does not need authentication, set mail.smtp.auth to false.");
+		} catch (NoClassDefFoundError e) {
+			Framework.logger.error("Before sending mails you must specify a username and a password in mail.properties. If your SMTP server does not need authentication, set mail.smtp.auth to false.");
 		}
 
 	    return new PasswordAuthentication(username, password);

Received on Wednesday, 23 September 2009 15:19:47 UTC