1 /* 2 3 * ==================================================================== 4 5 * The Apache Software License, Version 1.1 6 7 * 8 9 * Copyright (c) 2000 The Apache Software Foundation. All rights 10 11 * reserved. 12 13 * 14 15 * Redistribution and use in source and binary forms, with or without 16 17 * modification, are permitted provided that the following conditions 18 19 * are met: 20 21 * 22 23 * 1. Redistributions of source code must retain the above copyright 24 25 * notice, this list of conditions and the following disclaimer. 26 27 * 28 29 * 2. Redistributions in binary form must reproduce the above copyright 30 31 * notice, this list of conditions and the following disclaimer in 32 33 * the documentation and/or other materials provided with the 34 35 * distribution. 36 37 * 38 39 * 3. The end-user documentation included with the redistribution, 40 41 * if any, must include the following acknowledgment: 42 43 * "This product includes software developed by the 44 45 * Apache Software Foundation (http://www.apache.org/)." 46 47 * Alternately, this acknowledgment may appear in the software itself, 48 49 * if and wherever such third-party acknowledgments normally appear. 50 51 * 52 53 * 4. The names "Apache" and "Apache Software Foundation" must 54 55 * not be used to endorse or promote products derived from this 56 57 * software without prior written permission. For written 58 59 * permission, please contact apache@apache.org. 60 61 * 62 63 * 5. Products derived from this software may not be called "Apache", 64 65 * nor may "Apache" appear in their name, without prior written 66 67 * permission of the Apache Software Foundation. 68 69 * 70 71 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 72 73 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 74 75 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 76 77 * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR 78 79 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 80 81 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 82 83 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 84 85 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 86 87 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 88 89 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 90 91 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 92 93 * SUCH DAMAGE. 94 95 * ==================================================================== 96 97 * 98 99 * This software consists of voluntary contributions made by many 100 101 * individuals on behalf of the Apache Software Foundation. For more 102 103 * information on the Apache Software Foundation, please see 104 105 * <http://www.apache.org/>. 106 107 */ 108 109 package org.apache.poi.hpsf; 110 111 112 113 /** 114 115 * <p> 116 117 * 118 119 * This exception is thrown when there is an illegal value set in a 120 121 * {@link PropertySet}. For example, a {@link Variant#VT_BOOL} must have 122 123 * a value of <code>-1 (true)</code> or <code>0 (false)</code>. 124 125 * Any other value would trigger this exception. It supports a nested 126 127 * "reason" throwable, i.e. an exception that caused this one to be thrown. 128 129 * </p> 130 131 * 132 133 *@author Drew Varner(Drew.Varner atDomain sc.edu) 134 135 *@created May 26, 2002 136 137 *@version $Id: IllegalPropertySetDataException.java,v 1.1 2002/05/26 22:18:40 acoliver Exp $ 138 139 *@since 2002-05-26 140 141 */ 142 143 public class IllegalPropertySetDataException extends HPSFRuntimeException { 144 145 146 147 148 149 150 151 /** 152 153 * <p> 154 155 * 156 157 * Creates a new {@link IllegalPropertySetDataException}.</p> 158 159 */ 160 161 public IllegalPropertySetDataException() { 162 163 super(); 164 165 } 166 167 168 169 170 171 172 173 /** 174 175 * <p> 176 177 * 178 179 * Creates a new {@link IllegalPropertySetDataException} with a message string.</p> 180 181 * 182 183 *@param msg Description of the Parameter 184 185 */ 186 187 public IllegalPropertySetDataException(final String msg) { 188 189 super(msg); 190 191 } 192 193 194 195 196 197 198 199 /** 200 201 * <p> 202 203 * 204 205 * Creates a new {@link IllegalPropertySetDataException} with a reason.</p> 206 207 * 208 209 *@param reason Description of the Parameter 210 211 */ 212 213 public IllegalPropertySetDataException(final Throwable reason) { 214 215 super(reason); 216 217 } 218 219 220 221 222 223 224 225 /** 226 227 * <p> 228 229 * 230 231 * Creates a new {@link IllegalPropertySetDataException} with a message 232 233 * string and a reason.</p> 234 235 * 236 237 *@param msg Description of the Parameter 238 239 *@param reason Description of the Parameter 240 241 */ 242 243 public IllegalPropertySetDataException(final String msg, 244 245 final Throwable reason) { 246 247 super(msg,reason); 248 249 } 250 251 252 253 254 255 } 256 257 ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????IllegalPropertySetDataException???????????????????????????????????????????????????????HPSFRuntimeException??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????IllegalPropertySetDataException?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????IllegalPropertySetDataException???????????????msg????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????IllegalPropertySetDataException???????????????reason??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????IllegalPropertySetDataException???????????????msg???????????????????reason