Mercurial > projects > dwt2
diff org.eclipse.text/src/org/eclipse/jface/text/templates/TemplateException.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children | 5feec68b4556 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.eclipse.text/src/org/eclipse/jface/text/templates/TemplateException.d Sat Mar 14 18:23:29 2009 +0100 @@ -0,0 +1,95 @@ +/******************************************************************************* + * Copyright (c) 2000, 2005 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + * Port to the D programming language: + * Frank Benoit <benoit@tionex.de> + *******************************************************************************/ + + +module org.eclipse.jface.text.templates.TemplateException; + +import org.eclipse.jface.text.templates.SimpleTemplateVariableResolver; // packageimport +import org.eclipse.jface.text.templates.TemplateBuffer; // packageimport +import org.eclipse.jface.text.templates.TemplateContext; // packageimport +import org.eclipse.jface.text.templates.TemplateContextType; // packageimport +import org.eclipse.jface.text.templates.Template; // packageimport +import org.eclipse.jface.text.templates.TemplateVariable; // packageimport +import org.eclipse.jface.text.templates.PositionBasedCompletionProposal; // packageimport +import org.eclipse.jface.text.templates.TemplateTranslator; // packageimport +import org.eclipse.jface.text.templates.DocumentTemplateContext; // packageimport +import org.eclipse.jface.text.templates.GlobalTemplateVariables; // packageimport +import org.eclipse.jface.text.templates.InclusivePositionUpdater; // packageimport +import org.eclipse.jface.text.templates.TemplateProposal; // packageimport +import org.eclipse.jface.text.templates.ContextTypeRegistry; // packageimport +import org.eclipse.jface.text.templates.JFaceTextTemplateMessages; // packageimport +import org.eclipse.jface.text.templates.TemplateCompletionProcessor; // packageimport +import org.eclipse.jface.text.templates.TextTemplateMessages; // packageimport +import org.eclipse.jface.text.templates.TemplateVariableType; // packageimport +import org.eclipse.jface.text.templates.TemplateVariableResolver; // packageimport + +import java.lang.all; + + +/** + * Thrown when a template cannot be validated. + * <p> + * Clients may instantiate this class. + * </p> + * <p> + * This class is not intended to be serialized. + * </p> + * + * @since 3.0 + */ +public class TemplateException : Exception { + + /** + * Serial version UID for this class. + * <p> + * Note: This class is not intended to be serialized. + * </p> + * @since 3.1 + */ + private static const long serialVersionUID= 3906362710416699442L; + + /** + * Creates a new template exception. + */ + public this() { + super(null); + } + + /** + * Creates a new template exception. + * + * @param message the message describing the problem that arose + */ + public this(String message) { + super(message); + } + + /** + * Creates a new template exception. + * + * @param message the message describing the problem that arose + * @param cause the original exception + */ + public this(String message, Exception cause) { + super(message, cause); + } + + /** + * Creates a new template exception. + * + * @param cause the original exception + */ + public this(Exception cause) { + super(null, cause); + } +}