View Javadoc

1   /*
2    * $HeadURL: $
3    * $Date: $
4    * $Revision: $
5    * $Author: $
6    * 
7    * Copyright (c) 2006 MindTree Consulting Ltd. 
8    * 
9    * This file is part of Insight.
10   * 
11   * Insight is free software: you can redistribute it and/or modify it under the 
12   * terms of the GNU General Public License as published by the Free Software 
13   * Foundation, either version 3 of the License, or (at your option) any later 
14   * version.
15   * 
16   * Insight is distributed in the hope that it will be useful, but 
17   * WITHOUT ANY WARRANTY; without even the implied warranty of 
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General 
19   * Public License for more details.
20   * 
21   * You should have received a copy of the GNU General Public License along with 
22   * Insight.  If not, see <http://www.gnu.org/licenses/>.
23   */
24  package com.mindtree.techworks.insight.reporting.jobs;
25  
26  /**
27   * Exception thrown if the execution of a <code>Job</code> could not be
28   * completed. The initiator may then take additional action based on the details
29   * in the exception.
30   * 
31   * @author <a href="mailto:bindul_bhowmik@mindtree.com">Bindul Bhowmik</a>
32   * @version $Revision: 27 $ $Date: 2007-12-16 04:58:03 -0700 (Sun, 16 Dec 2007) $
33   * @since Insight 1.5
34   */
35  public class JobExecutionException extends Exception {
36  
37  	// -------------------------------------------------------------------------
38  	// Constants
39  	// -------------------------------------------------------------------------
40  	
41  	/**
42  	 * Serial Version UID for the serialized form of the class.
43  	 */
44  	private static final long serialVersionUID = 3563500066675084467L;
45  	
46  	// -------------------------------------------------------------------------
47  	// Constructor(s)
48  	// -------------------------------------------------------------------------
49  
50  	/**
51  	 * Creates a new <code>JobExecutionException</code> with the
52  	 * message provided and the root cause of the exception.
53  	 * 
54  	 * @param message
55  	 *            A message describing the cause of the exception.
56  	 * @param cause
57  	 *            The throwable that caused this exception to be thrown.
58  	 */
59  	public JobExecutionException (String message, Throwable cause) {
60  
61  		super (message, cause);
62  	}
63  
64  	/**
65  	 * Creates a new <code>JobExecutionException</code> with the
66  	 * message provided.
67  	 * 
68  	 * @param message
69  	 *            A message describing the cause of the exception.
70  	 */
71  	public JobExecutionException (String message) {
72  
73  		super (message);
74  	}
75  }