avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: avalon-phoenix/src/java/org/apache/avalon/phoenix/framework/tools/verifier VerifyException.java
Date Sat, 01 Mar 2003 04:04:26 GMT
donaldp     2003/02/28 20:04:26

  Modified:    src/java/org/apache/avalon/phoenix/framework/tools/verifier
                        VerifyException.java
  Log:
  Decouple from framework
  
  Revision  Changes    Path
  1.2       +17 -5     avalon-phoenix/src/java/org/apache/avalon/phoenix/framework/tools/verifier/VerifyException.java
  
  Index: VerifyException.java
  ===================================================================
  RCS file: /home/cvs/avalon-phoenix/src/java/org/apache/avalon/phoenix/framework/tools/verifier/VerifyException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- VerifyException.java	1 Mar 2003 03:39:48 -0000	1.1
  +++ VerifyException.java	1 Mar 2003 04:04:25 -0000	1.2
  @@ -7,8 +7,6 @@
    */
   package org.apache.avalon.phoenix.framework.tools.verifier;
   
  -import org.apache.avalon.framework.CascadingException;
  -
   /**
    * Exception to indicate error verifying a Block or application.
    *
  @@ -16,8 +14,10 @@
    * @version $Revision$ $Date$
    */
   public final class VerifyException
  -    extends CascadingException
  +    extends Exception
   {
  +    private final Throwable m_throwable;
  +
       /**
        * Construct a new <code>VerifyException</code> instance.
        *
  @@ -36,6 +36,18 @@
        */
       public VerifyException( final String message, final Throwable throwable )
       {
  -        super( message, throwable );
  +        super( message );
  +        m_throwable = throwable;
       }
  +
  +    /**
  +     * Retrieve cause of exception.
  +     *
  +     * @return the exception that caused this exception.
  +     */
  +    public Throwable getCause()
  +    {
  +        return m_throwable;
  +    }
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message