View Javadoc

1   package org.molwind.view;
2   
3   /*
4    * This file is part of Molwind.
5    *
6    * Molwind is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU General Public License as published by
8    * the Free Software Foundation, either version 3 of the License, or
9    * (at your option) any later version.
10   *
11   * Molwind is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14   * GNU General Public License for more details.
15   *
16   * You should have received a copy of the GNU General Public License
17   * along with Molwind. If not, see <http://www.gnu.org/licenses/>.
18   */
19  
20  /**
21   * TileException represents an exception generated by tile operations.
22   *
23   * @author <a href="mailto:oliver.karch@molwind.org">Oliver Karch</a>
24   * @version 1.0
25   */
26  public class TileException extends Exception {
27  
28      private static final long serialVersionUID = 3566332587719207338L;
29  
30      /**
31       * Constructs a new exception with null as its detail message.
32       */
33      public TileException() {
34          super();
35      }
36  
37      /**
38       * Constructs a new exception with the specified detail message.
39       *
40       * @param message
41       *      the detail message, saved for later retrieval by the
42       *      <code>Throwable.getMessage()</code> method
43       */
44      public TileException(final String message) {
45          super(message);
46      }
47  
48      /**
49       * Constructs a new exception with the specified detail message and cause.
50       *
51       * @param message
52       *      the detail message, saved for later retrieval by the
53       *      <code>Throwable.getMessage()</code> method
54       * @param cause
55       *      the cause, saved for later retrieval by the
56       *      <code>Throwable.getCause()</code> method (a null value is
57       *      permitted, and indicates that the cause is nonexistent or unknown)
58       */
59      public TileException(final String message, final Throwable cause) {
60          super(message, cause);
61      }
62  
63      /**
64       * Constructs a new exception with the specified cause and a detail message
65       * of <code>cause == null ? null : cause.toString()</code> (which typically
66       * contains the class and detail message of cause).
67       *
68       * @param cause
69       *      the cause, saved for later retrieval by the
70       *      <code>Throwable.getCause()</code> method (a null value is
71       *      permitted, and indicates that the cause is nonexistent or unknown)
72       */
73      public TileException(final Throwable cause) {
74          super(cause);
75      }
76  
77  }