KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > text > templates > TemplateException


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.jface.text.templates;
13
14
15 /**
16  * Thrown when a template cannot be validated.
17  * <p>
18  * Clients may instantiate this class.
19  * </p>
20  * <p>
21  * This class is not intended to be serialized.
22  * </p>
23  *
24  * @since 3.0
25  */

26 public class TemplateException extends Exception JavaDoc {
27
28     /**
29      * Serial version UID for this class.
30      * <p>
31      * Note: This class is not intended to be serialized.
32      * </p>
33      * @since 3.1
34      */

35     private static final long serialVersionUID= 3906362710416699442L;
36
37     /**
38      * Creates a new template exception.
39      */

40     public TemplateException() {
41         super();
42     }
43
44     /**
45      * Creates a new template exception.
46      *
47      * @param message the message describing the problem that arose
48      */

49     public TemplateException(String JavaDoc message) {
50         super(message);
51     }
52
53     /**
54      * Creates a new template exception.
55      *
56      * @param message the message describing the problem that arose
57      * @param cause the original exception
58      */

59     public TemplateException(String JavaDoc message, Throwable JavaDoc cause) {
60         super(message, cause);
61     }
62
63     /**
64      * Creates a new template exception.
65      *
66      * @param cause the original exception
67      */

68     public TemplateException(Throwable JavaDoc cause) {
69         super(cause);
70     }
71 }
72
Popular Tags