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.io;
9   
10  import java.io.IOException;
11  import org.objectweb.asm.ClassVisitor;
12  import org.codehaus.metaclass.model.ClassDescriptor;
13  
14  /***
15   * @author Peter Donald
16   * @version $Revision: 1.1 $ $Date: 2003/12/11 08:41:51 $
17   */
18  public class FailingAddMetaDataAdapter
19      extends AddMetaDataAdapter
20  {
21      static final IOException IO_EXCEPTION = new IOException();
22  
23      public FailingAddMetaDataAdapter( final ClassVisitor cv,
24                                        final ClassDescriptor descriptor )
25      {
26          super( cv, descriptor );
27      }
28  
29      byte[] toBytes()
30          throws IOException
31      {
32          throw IO_EXCEPTION;
33      }
34  }