KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hpsf > UnsupportedVariantTypeException


1 /* ====================================================================
2    Copyright 2002-2004 Apache Software Foundation
3
4    Licensed under the Apache License, Version 2.0 (the "License");
5    you may not use this file except in compliance with the License.
6    You may obtain a copy of the License at
7
8        http://www.apache.org/licenses/LICENSE-2.0
9
10    Unless required by applicable law or agreed to in writing, software
11    distributed under the License is distributed on an "AS IS" BASIS,
12    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    See the License for the specific language governing permissions and
14    limitations under the License.
15 ==================================================================== */

16         
17 package org.apache.poi.hpsf;
18
19 import org.apache.poi.util.HexDump;
20
21 /**
22  * <p>This exception is thrown if HPSF encounters a variant type that isn't
23  * supported yet. Although a variant type is unsupported the value can still be
24  * retrieved using the {@link #getValue} method.</p>
25  *
26  * <p>Obviously this class should disappear some day.</p>
27  *
28  * @author Rainer Klute <a
29  * HREF="mailto:klute@rainer-klute.de">&lt;klute@rainer-klute.de&gt;</a>
30  * @since 2003-08-05
31  * @version $Id: UnsupportedVariantTypeException.java,v 1.5 2005/01/01 07:06:18 glens Exp $
32  */

33 public abstract class UnsupportedVariantTypeException
34 extends VariantTypeException
35 {
36
37     /**
38      * <p>Constructor.</p>
39      *
40      * @param variantType The unsupported variant type
41      * @param value The value who's variant type is not yet supported
42      */

43     public UnsupportedVariantTypeException(final long variantType,
44                                            final Object JavaDoc value)
45     {
46         super(variantType, value,
47               "HPSF does not yet support the variant type " + variantType +
48               " (" + Variant.getVariantName(variantType) + ", " +
49               HexDump.toHex(variantType) + "). If you want support for " +
50               "this variant type in one of the next POI releases please " +
51               "submit a request for enhancement (RFE) to " +
52               "<http://issues.apache.org/bugzilla/>! Thank you!");
53     }
54
55
56
57 }
58
Popular Tags