KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > util > CircularDependencyException


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.util;
9
10 import java.util.List JavaDoc;
11 import org.apache.avalon.framework.CascadingException;
12
13 /**
14  *
15  * @author <a HREF="mailto:peter@apache.org">Peter Donald</a>
16  */

17 public final class CircularDependencyException
18     extends CascadingException
19 {
20     protected final List JavaDoc m_stack;
21
22     public CircularDependencyException( final String JavaDoc dependee,
23                                         final String JavaDoc dependent,
24                                         final List JavaDoc stack )
25     {
26         super( new StringBuffer JavaDoc(dependee).append(" depends upon ")
27                .append(dependent).append(" which depends upong ")
28                .append(dependee).toString() );
29         m_stack = stack;
30     }
31
32     public final List JavaDoc getStack()
33     {
34         return m_stack;
35     }
36 }
37
Popular Tags