X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics%2Fsrc%2Forg%2Fsimantics%2FPlatformException.java;h=2bfaa29cc878b4c0337f06b413d092ea47406d37;hb=6a98de0ec279869a23d14cb9b3ed6cb0999a820d;hp=b03f26a9e1d118dee2840c6a9391b5cc23494c78;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics/src/org/simantics/PlatformException.java b/bundles/org.simantics/src/org/simantics/PlatformException.java index b03f26a9e..2bfaa29cc 100644 --- a/bundles/org.simantics/src/org/simantics/PlatformException.java +++ b/bundles/org.simantics/src/org/simantics/PlatformException.java @@ -1,76 +1,76 @@ -/******************************************************************************* - * Copyright (c) 2007, 2014 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * VTT Technical Research Centre of Finland - initial API and implementation - * Semantum Oy - optional fillStackTrace - *******************************************************************************/ -package org.simantics; - -/** - * @author Toni Kalajainen - */ -public class PlatformException extends Exception { - - private static final long serialVersionUID = -2967261259650645038L; - - private final boolean fillStackTrace; - - public PlatformException() { - this(true); - } - - public PlatformException(String message) { - this(message, true); - } - - public PlatformException(Throwable cause) { - this(cause, true); - } - - public PlatformException(String message, Throwable cause) { - this(message, cause, true); - } - - /** - * @since Simantics 1.15 - */ - public PlatformException(boolean fillStackTrace) { - this.fillStackTrace = fillStackTrace; - } - - /** - * @since Simantics 1.15 - */ - public PlatformException(String message, boolean fillStackTrace) { - super(message); - this.fillStackTrace = fillStackTrace; - } - - /** - * @since Simantics 1.15 - */ - public PlatformException(Throwable cause, boolean fillStackTrace) { - super(cause); - this.fillStackTrace = fillStackTrace; - } - - /** - * @since Simantics 1.15 - */ - public PlatformException(String message, Throwable cause, boolean fillStackTrace) { - super(message, cause); - this.fillStackTrace = fillStackTrace; - } - - @Override - public synchronized Throwable fillInStackTrace() { - return fillStackTrace ? super.fillInStackTrace() : this; - } - +/******************************************************************************* + * Copyright (c) 2007, 2014 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * VTT Technical Research Centre of Finland - initial API and implementation + * Semantum Oy - optional fillStackTrace + *******************************************************************************/ +package org.simantics; + +/** + * @author Toni Kalajainen + */ +public class PlatformException extends Exception { + + private static final long serialVersionUID = -2967261259650645038L; + + private final boolean fillStackTrace; + + public PlatformException() { + this(true); + } + + public PlatformException(String message) { + this(message, true); + } + + public PlatformException(Throwable cause) { + this(cause, true); + } + + public PlatformException(String message, Throwable cause) { + this(message, cause, true); + } + + /** + * @since Simantics 1.15 + */ + public PlatformException(boolean fillStackTrace) { + this.fillStackTrace = fillStackTrace; + } + + /** + * @since Simantics 1.15 + */ + public PlatformException(String message, boolean fillStackTrace) { + super(message); + this.fillStackTrace = fillStackTrace; + } + + /** + * @since Simantics 1.15 + */ + public PlatformException(Throwable cause, boolean fillStackTrace) { + super(cause); + this.fillStackTrace = fillStackTrace; + } + + /** + * @since Simantics 1.15 + */ + public PlatformException(String message, Throwable cause, boolean fillStackTrace) { + super(message, cause); + this.fillStackTrace = fillStackTrace; + } + + @Override + public synchronized Throwable fillInStackTrace() { + return fillStackTrace ? super.fillInStackTrace() : this; + } + } \ No newline at end of file