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
|
131
|
14
|
|
15 import dwtx.jface.text.templates.SimpleTemplateVariableResolver; // packageimport
|
|
16 import dwtx.jface.text.templates.TemplateBuffer; // packageimport
|
|
17 import dwtx.jface.text.templates.TemplateContext; // packageimport
|
|
18 import dwtx.jface.text.templates.TemplateContextType; // packageimport
|
|
19 import dwtx.jface.text.templates.Template; // packageimport
|
|
20 import dwtx.jface.text.templates.TemplateVariable; // packageimport
|
|
21 import dwtx.jface.text.templates.PositionBasedCompletionProposal; // packageimport
|
|
22 import dwtx.jface.text.templates.TemplateTranslator; // packageimport
|
|
23 import dwtx.jface.text.templates.DocumentTemplateContext; // packageimport
|
|
24 import dwtx.jface.text.templates.GlobalTemplateVariables; // packageimport
|
|
25 import dwtx.jface.text.templates.InclusivePositionUpdater; // packageimport
|
|
26 import dwtx.jface.text.templates.TemplateProposal; // packageimport
|
|
27 import dwtx.jface.text.templates.ContextTypeRegistry; // packageimport
|
|
28 import dwtx.jface.text.templates.JFaceTextTemplateMessages; // packageimport
|
|
29 import dwtx.jface.text.templates.TemplateCompletionProcessor; // packageimport
|
|
30 import dwtx.jface.text.templates.TextTemplateMessages; // packageimport
|
|
31 import dwtx.jface.text.templates.TemplateVariableType; // packageimport
|
|
32 import dwtx.jface.text.templates.TemplateVariableResolver; // packageimport
|
|
33
|
129
|
34 module dwtx.jface.text.templates.TemplateException;
|
|
35
|
|
36 import dwt.dwthelper.utils;
|
|
37
|
|
38
|
|
39 /**
|
|
40 * Thrown when a template cannot be validated.
|
|
41 * <p>
|
|
42 * Clients may instantiate this class.
|
|
43 * </p>
|
|
44 * <p>
|
|
45 * This class is not intended to be serialized.
|
|
46 * </p>
|
|
47 *
|
|
48 * @since 3.0
|
|
49 */
|
|
50 public class TemplateException : Exception {
|
|
51
|
|
52 /**
|
|
53 * Serial version UID for this class.
|
|
54 * <p>
|
|
55 * Note: This class is not intended to be serialized.
|
|
56 * </p>
|
|
57 * @since 3.1
|
|
58 */
|
|
59 private static final long serialVersionUID= 3906362710416699442L;
|
|
60
|
|
61 /**
|
|
62 * Creates a new template exception.
|
|
63 */
|
|
64 public TemplateException() {
|
|
65 super();
|
|
66 }
|
|
67
|
|
68 /**
|
|
69 * Creates a new template exception.
|
|
70 *
|
|
71 * @param message the message describing the problem that arose
|
|
72 */
|
|
73 public TemplateException(String message) {
|
|
74 super(message);
|
|
75 }
|
|
76
|
|
77 /**
|
|
78 * Creates a new template exception.
|
|
79 *
|
|
80 * @param message the message describing the problem that arose
|
|
81 * @param cause the original exception
|
|
82 */
|
|
83 public TemplateException(String message, Throwable cause) {
|
|
84 super(message, cause);
|
|
85 }
|
|
86
|
|
87 /**
|
|
88 * Creates a new template exception.
|
|
89 *
|
|
90 * @param cause the original exception
|
|
91 */
|
|
92 public TemplateException(Throwable cause) {
|
|
93 super(cause);
|
|
94 }
|
|
95 }
|