Mercurial > projects > dwt2
view org.eclipse.core.databinding/src/org/eclipse/core/databinding/BindingException.d @ 125:c43718956f21 default tip
Updated the snippets status.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 11 Aug 2011 19:55:14 +0200 |
parents | 6be48cf9f95c |
children |
line wrap: on
line source
/******************************************************************************* * Copyright (c) 2005, 2007 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 *******************************************************************************/ module org.eclipse.core.databinding.BindingException; import java.lang.all; import java.io.PrintStream; import java.io.PrintWriter; /** * An unchecked exception indicating a binding problem. * * @since 1.0 */ public class BindingException : RuntimeException { /* * Needed because all Throwables are Serializable. */ private static final long serialVersionUID = -4092828452936724217L; private Throwable cause; /** * Creates a new BindingException with the given message. * * @param message */ public this(String message) { super(message); } /** * Creates a new BindingException with the given message and cause. * * @param message * @param cause */ public this(String message, Throwable cause) { super(message); this.cause = cause; } public void printStackTrace(PrintStream err) { implMissing( __FILE__, __LINE__ ); //ExceptionPrintStackTrace( this, err ); //if (cause !is null) { // err.println("caused by:"); //$NON-NLS-1$ // ExceptionPrintStackTrace( cause, err ); //} } public void printStackTrace(PrintWriter err) { implMissing( __FILE__, __LINE__ ); //ExceptionPrintStackTrace( this, err ); //if (cause !is null) { // err.println("caused by:"); //$NON-NLS-1$ // ExceptionPrintStackTrace( cause, err ); //} } }