dlr 2002/08/21 02:19:09 Modified: src/java/org/apache/xmlrpc AuthenticationFailed.java Log: Turns out that this needs to be a sub-class of Throwable, so we may as well extend RuntimeException. Revision Changes Path 1.2 +10 -12 xml-rpc/src/java/org/apache/xmlrpc/AuthenticationFailed.java Index: AuthenticationFailed.java =================================================================== RCS file: /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/AuthenticationFailed.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -u -r1.1 -r1.2 --- AuthenticationFailed.java 21 Aug 2002 09:07:28 -0000 1.1 +++ AuthenticationFailed.java 21 Aug 2002 09:19:09 -0000 1.2 @@ -56,22 +56,20 @@ */ /** - * An interface used to mark authentication failures. For instance, a - * class might implement this interface and sub-class - * <code>java.security.acl.AclNotFoundException</code> to indicate - * that a user does not exist, providing an appropriate message via - * the {@link #getMessage()} API. + * Thrown as the result of an authentication failure. * * @author <a href="mailto:[EMAIL PROTECTED]">Daniel Rall</a> * @see org.apache.xmlrpc.AuthenticatedXmlRpcHandler * @since 1.2 */ -public interface AuthenticationFailed +public class AuthenticationFailed extends RuntimeException { - /** - * Describes why authentication failed. - * - * @return A text description of how the failure occurred. - */ - public String getMessage(); + public AuthenticationFailed() + { + } + + public AuthenticationFailed(String msg) + { + super(msg); + } }