129
|
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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13
|
|
14 module dwtx.jface.text.templates.TemplateException;
|
|
15
|
|
16 import dwt.dwthelper.utils;
|
|
17
|
|
18
|
|
19 /**
|
|
20 * Thrown when a template cannot be validated.
|
|
21 * <p>
|
|
22 * Clients may instantiate this class.
|
|
23 * </p>
|
|
24 * <p>
|
|
25 * This class is not intended to be serialized.
|
|
26 * </p>
|
|
27 *
|
|
28 * @since 3.0
|
|
29 */
|
|
30 public class TemplateException : Exception {
|
|
31
|
|
32 /**
|
|
33 * Serial version UID for this class.
|
|
34 * <p>
|
|
35 * Note: This class is not intended to be serialized.
|
|
36 * </p>
|
|
37 * @since 3.1
|
|
38 */
|
|
39 private static final long serialVersionUID= 3906362710416699442L;
|
|
40
|
|
41 /**
|
|
42 * Creates a new template exception.
|
|
43 */
|
|
44 public TemplateException() {
|
|
45 super();
|
|
46 }
|
|
47
|
|
48 /**
|
|
49 * Creates a new template exception.
|
|
50 *
|
|
51 * @param message the message describing the problem that arose
|
|
52 */
|
|
53 public TemplateException(String message) {
|
|
54 super(message);
|
|
55 }
|
|
56
|
|
57 /**
|
|
58 * Creates a new template exception.
|
|
59 *
|
|
60 * @param message the message describing the problem that arose
|
|
61 * @param cause the original exception
|
|
62 */
|
|
63 public TemplateException(String message, Throwable cause) {
|
|
64 super(message, cause);
|
|
65 }
|
|
66
|
|
67 /**
|
|
68 * Creates a new template exception.
|
|
69 *
|
|
70 * @param cause the original exception
|
|
71 */
|
|
72 public TemplateException(Throwable cause) {
|
|
73 super(cause);
|
|
74 }
|
|
75 }
|