xml-rpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-rpc/src/java/org/apache/xmlrpc AuthenticationFailed.java
Date Wed, 21 Aug 2002 09:19:09 GMT
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:dlr@finemaltcoding.com">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);
  +    }
   }
  
  
  

Mime
View raw message