View Javadoc

1   /*
2    Copyright (C) 2007 Grid Systems, S.A. and University of Southampton IT Innovation Centre
3   
4    This library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Lesser General Public
6    License as published by the Free Software Foundation; either
7    version 2.1 of the License, or (at your option) any later version.
8   
9    This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13  
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
17  */
18  package uk.ac.soton.itinnovation.nextgrid.api.pom.exceptions;
19  
20  /**
21   * ExecutionException type.
22   *
23   * @author Nikolaos Matskanis
24   */
25  public class ExecutionException extends RuntimeException {
26    /**
27     * <code>serialVersionUID</code> attribute.
28     */
29    private static final long serialVersionUID = -3043490633674599450L;
30  
31    /**
32     * Creates a new instance.
33     */
34    public ExecutionException() {
35      this(null, null);
36    }
37  
38    /**
39     * Creates a new instance.
40     *
41     * @param message A text message
42     */
43    public ExecutionException(String message) {
44      this(message, null);
45    }
46  
47    /**
48     * Creates a new instance.
49     *
50     * @param t The cause
51     */
52    public ExecutionException(Throwable t) {
53      this((t == null) ? null : t.getMessage(), t);
54    }
55  
56    /**
57     * Creates a new instance.
58     *
59     * @param message Text message
60     * @param cause Cause
61     */
62    public ExecutionException(String message, Throwable cause) {
63      super(message, cause);
64    }
65  }