View Javadoc

1   /*
2    * $Id: TilesIOException.java 619574 2008-02-07 19:09:33Z apetrelli $
3    *
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   * http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  package org.apache.tiles.util;
22  
23  import java.io.IOException;
24  
25  /***
26   * This exception mimics the {@link IOException} class that is present in Java 6
27   * but not in Java 5. It contains the same number of constructors.
28   *
29   * @version $Rev: 619574 $ $Date: 2008-02-07 20:09:33 +0100 (Thu, 07 Feb 2008) $
30   * @since 2.0.6
31   */
32  public class TilesIOException extends IOException {
33  
34      /***
35       * Default constructor.
36       * @since 2.0.6
37       */
38      public TilesIOException() {
39      }
40  
41      /***
42       * Constructor.
43       *
44       * @param message Message of the exception.
45       * @since 2.0.6
46       */
47      public TilesIOException(String message) {
48          super(message);
49      }
50  
51      /***
52       * Constructor.
53       *
54       * @param cause The cause of the exception.
55       * @since 2.0.6
56       */
57      public TilesIOException(Throwable cause) {
58          super();
59          this.initCause(cause);
60      }
61  
62      /***
63       * Constructor.
64       *
65       * @param message Message of the exception.
66       * @param cause The cause of the exception.
67       * @since 2.0.6
68       */
69      public TilesIOException(String message, Throwable cause) {
70          super(message);
71          this.initCause(cause);
72      }
73  }