KickJava   Java API By Example, From Geeks To Geeks.

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


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

17         
18 package org.apache.poi.hpsf;
19
20 /**
21  * <p>This exception is thrown when there is an illegal value set in a
22  * {@link PropertySet}. For example, a {@link Variant#VT_BOOL} must
23  * have a value of <code>-1 (true)</code> or <code>0 (false)</code>.
24  * Any other value would trigger this exception. It supports a nested
25  * "reason" throwable, i.e. an exception that caused this one to be
26  * thrown.</p>
27  *
28  * @author Drew Varner(Drew.Varner atDomain sc.edu)
29  * @version $Id: IllegalPropertySetDataException.java,v 1.6 2004/04/09 13:05:16 glens Exp $
30  * @since 2002-05-26
31  */

32 public class IllegalPropertySetDataException extends HPSFRuntimeException
33 {
34
35     /**
36      * <p>Constructor</p>
37      */

38     public IllegalPropertySetDataException()
39     {
40         super();
41     }
42
43
44
45     /**
46      * <p>Constructor</p>
47      *
48      * @param msg The exception's message string
49      */

50     public IllegalPropertySetDataException(final String JavaDoc msg)
51     {
52         super(msg);
53     }
54
55
56
57     /**
58      * <p>Constructor</p>
59      *
60      * @param reason This exception's underlying reason
61      */

62     public IllegalPropertySetDataException(final Throwable JavaDoc reason)
63     {
64         super(reason);
65     }
66
67
68
69     /**
70      * <p>Constructor</p>
71      *
72      * @param msg The exception's message string
73      * @param reason This exception's underlying reason
74      */

75     public IllegalPropertySetDataException(final String JavaDoc msg,
76                                            final Throwable JavaDoc reason)
77     {
78         super(msg, reason);
79     }
80
81 }
82
Popular Tags