View Javadoc

1   /*
2    * Copyright (c) 2005, London e-Science Centre, Imperial College London, UK
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6    *
7    * - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8    * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9    * - Neither the name of the London e-Science Centre nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10   *
11   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12   */
13  package org.icenigrid.gridsam.core;
14  
15  /**
16   * Exception thrown when there is an error in the job submission process
17   * 
18   * @author wwhl
19   */
20  
21  public class SubmissionException extends Exception {
22  
23      /**
24       * Constructs a new exception with <code>null</code> as its detail
25       * message. The cause is not initialized, and may subsequently be
26       * initialized by a call to {@link #initCause}.
27       */
28      public SubmissionException() {
29          super();
30      }
31  
32      /**
33       * Constructs a new exception with the specified detail message. The cause
34       * is not initialized, and may subsequently be initialized by a call to
35       * {@link #initCause}.
36       * 
37       * @param message
38       *            the detail message. The detail message is saved for later
39       *            retrieval by the {@link #getMessage()} method.
40       */
41      public SubmissionException(String message) {
42          super(message);
43      }
44  
45      /**
46       * Constructs a new exception with the specified detail message and cause.
47       * <p>
48       * Note that the detail message associated with <code>cause</code> is
49       * <i>not</i> automatically incorporated in this exception's detail
50       * message.
51       * 
52       * @param message
53       *            the detail message (which is saved for later retrieval by the
54       *            {@link #getMessage()} method).
55       * @param cause
56       *            the cause (which is saved for later retrieval by the
57       *            {@link #getCause()} method). (A <tt>null</tt> value is
58       *            permitted, and indicates that the cause is nonexistent or
59       *            unknown.)
60       * @since 1.4
61       */
62      public SubmissionException(String message, Throwable cause) {
63          super(message, cause);
64      }
65  
66      /**
67       * Constructs a new exception with the specified cause and a detail message
68       * of <tt>(cause==null ? null :
69       * cause.toString())</tt> (which typically
70       * contains the class and detail message of <tt>cause</tt>). This
71       * constructor is useful for exceptions that are little more than wrappers
72       * for other throwables (for example, {@link
73       * java.security.PrivilegedActionException}).
74       * 
75       * @param cause
76       *            the cause (which is saved for later retrieval by the
77       *            {@link #getCause()} method). (A <tt>null</tt> value is
78       *            permitted, and indicates that the cause is nonexistent or
79       *            unknown.)
80       * @since 1.4
81       */
82      public SubmissionException(Throwable cause) {
83          super(cause);
84      }
85  
86  }