01: /* ====================================================================
02: Licensed to the Apache Software Foundation (ASF) under one or more
03: contributor license agreements. See the NOTICE file distributed with
04: this work for additional information regarding copyright ownership.
05: The ASF licenses this file to You under the Apache License, Version 2.0
06: (the "License"); you may not use this file except in compliance with
07: the License. You may obtain a copy of the License at
08:
09: 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 489730 2006-12-22 19:18:16Z bayard $
30: * @since 2002-05-26
31: */
32: public class IllegalPropertySetDataException extends
33: HPSFRuntimeException {
34:
35: /**
36: * <p>Constructor</p>
37: */
38: public IllegalPropertySetDataException() {
39: super ();
40: }
41:
42: /**
43: * <p>Constructor</p>
44: *
45: * @param msg The exception's message string
46: */
47: public IllegalPropertySetDataException(final String msg) {
48: super (msg);
49: }
50:
51: /**
52: * <p>Constructor</p>
53: *
54: * @param reason This exception's underlying reason
55: */
56: public IllegalPropertySetDataException(final Throwable reason) {
57: super (reason);
58: }
59:
60: /**
61: * <p>Constructor</p>
62: *
63: * @param msg The exception's message string
64: * @param reason This exception's underlying reason
65: */
66: public IllegalPropertySetDataException(final String msg,
67: final Throwable reason) {
68: super(msg, reason);
69: }
70:
71: }
|