1   /*
2    * Copyright (C) The MetaClass Group. All rights reserved.
3    *
4    * This software is published under the terms of the Spice
5    * Software License version 1.1, a copy of which has been included
6    * with this distribution in the LICENSE.txt file.
7    */
8   package org.codehaus.metaclass.tools.compiler;
9   
10  import com.thoughtworks.qdox.model.JavaClass;
11  import org.codehaus.metaclass.model.Attribute;
12  import org.codehaus.metaclass.tools.qdox.DefaultQDoxAttributeInterceptor;
13  
14  /***
15   * @author Peter Donald
16   * @version $Revision: 1.2 $ $Date: 2003/11/28 11:14:54 $
17   */
18  class ExceptingInterceptor
19      extends DefaultQDoxAttributeInterceptor
20  {
21      static final IllegalStateException EXCEPTION = new IllegalStateException(
22          "Blah!" );
23  
24      public Attribute processClassAttribute( JavaClass clazz,
25                                              Attribute attribute )
26      {
27          throw EXCEPTION;
28      }
29  }