Author: craigmcc
Date: Thu Oct 28 20:21:39 2004
New Revision: 55935
Modified:
struts/trunk/struts-examples/mailreader/src/java/org/apache/struts/examples/mailreader/ExpiredPasswordException.java
Log:
Decouple this class from requiring Struts, so that it can be used outside.
Modified:
struts/trunk/struts-examples/mailreader/src/java/org/apache/struts/examples/mailreader/ExpiredPasswordException.java
==============================================================================
---
struts/trunk/struts-examples/mailreader/src/java/org/apache/struts/examples/mailreader/ExpiredPasswordException.java
(original)
+++
struts/trunk/struts-examples/mailreader/src/java/org/apache/struts/examples/mailreader/ExpiredPasswordException.java
Thu Oct 28 20:21:39 2004
@@ -18,14 +18,12 @@
package org.apache.struts.examples.mailreader;
-import org.apache.struts.util.ModuleException;
-
/**
* Example of an application-specific exception for which a handler
* can be configured.
*/
-public class ExpiredPasswordException extends ModuleException {
+public class ExpiredPasswordException extends IllegalArgumentException {
/**
@@ -34,7 +32,7 @@
* @param username Username whose password has expired
*/
public ExpiredPasswordException(String username) {
- super("error.password.expired", username);
+ super("Password expired for user '" + username + "'");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]