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 one of the {@link PropertySet}'s
22: * convenience methods that require a single {@link Section} is called
23: * and the {@link PropertySet} does not contain exactly one {@link
24: * Section}.</p>
25: *
26: * <p>The constructors of this class are analogous to those of its
27: * superclass and documented there.</p>
28: *
29: * @author Rainer Klute <a
30: * href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
31: * @version $Id: NoSingleSectionException.java 489730 2006-12-22 19:18:16Z bayard $
32: * @since 2002-02-09
33: */
34: public class NoSingleSectionException extends HPSFRuntimeException {
35:
36: /**
37: * <p>Constructor</p>
38: */
39: public NoSingleSectionException() {
40: super ();
41: }
42:
43: /**
44: * <p>Constructor</p>
45: *
46: * @param msg The exception's message string
47: */
48: public NoSingleSectionException(final String msg) {
49: super (msg);
50: }
51:
52: /**
53: * <p>Constructor</p>
54: *
55: * @param reason This exception's underlying reason
56: */
57: public NoSingleSectionException(final Throwable reason) {
58: super (reason);
59: }
60:
61: /**
62: * <p>Constructor</p>
63: *
64: * @param msg The exception's message string
65: * @param reason This exception's underlying reason
66: */
67: public NoSingleSectionException(final String msg,
68: final Throwable reason) {
69: super(msg, reason);
70: }
71:
72: }
|