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 if a {@link MutablePropertySet} is to be written
22: * but does not have a formatID set (see {@link
23: * MutableSection#setFormatID(ClassID)} or
24: * {@link org.apache.poi.hpsf.MutableSection#setFormatID(byte[])}.
25: *
26: * @author Rainer Klute <a
27: * href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
28: * @version $Id: NoFormatIDException.java 489730 2006-12-22 19:18:16Z bayard $
29: * @since 2002-09-03
30: */
31: public class NoFormatIDException extends HPSFRuntimeException {
32:
33: /**
34: * <p>Constructor</p>
35: */
36: public NoFormatIDException() {
37: super ();
38: }
39:
40: /**
41: * <p>Constructor</p>
42: *
43: * @param msg The exception's message string
44: */
45: public NoFormatIDException(final String msg) {
46: super (msg);
47: }
48:
49: /**
50: * <p>Constructor</p>
51: *
52: * @param reason This exception's underlying reason
53: */
54: public NoFormatIDException(final Throwable reason) {
55: super (reason);
56: }
57:
58: /**
59: * <p>Constructor</p>
60: *
61: * @param msg The exception's message string
62: * @param reason This exception's underlying reason
63: */
64: public NoFormatIDException(final String msg, final Throwable reason) {
65: super(msg, reason);
66: }
67:
68: }
|