KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > extension > UnsatisfiedExtensionException


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.excalibur.extension;
9
10 /**
11  * Exception indicating an extension was not found in Package Repository.
12  *
13  * @author <a HREF="mailto:peter@apache.org">Peter Donald</a>
14  * @version $Revision: 1.3 $ $Date: 2001/12/11 09:53:34 $
15  * @see Extension
16  */

17 public class UnsatisfiedExtensionException
18     extends Exception JavaDoc
19 {
20     private Extension m_extension;
21
22     /**
23      * Construct the <code>UnsatisfiedPackageException</code>
24      * for specified <code>Extension</code>.
25      *
26      * @param extension the extension that caused exception
27      */

28     public UnsatisfiedExtensionException( final Extension extension )
29     {
30         m_extension = extension;
31     }
32
33     /**
34      * Return the unsatisfied <code>Extension</code> that
35      * caused this exception tho be thrown.
36      *
37      * @return the unsatisfied Extension
38      */

39     public Extension getUnsatisfiedExtension()
40     {
41         return m_extension;
42     }
43 }
44
Popular Tags