diff options
Diffstat (limited to 'plugins/facet/org.eclipse.papyrus.emf.facet.efacet.core/src/org/eclipse/papyrus/emf/facet/efacet/core/internal/exception/DerivedTypedElementEvaluationException.java')
-rw-r--r-- | plugins/facet/org.eclipse.papyrus.emf.facet.efacet.core/src/org/eclipse/papyrus/emf/facet/efacet/core/internal/exception/DerivedTypedElementEvaluationException.java | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.core/src/org/eclipse/papyrus/emf/facet/efacet/core/internal/exception/DerivedTypedElementEvaluationException.java b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.core/src/org/eclipse/papyrus/emf/facet/efacet/core/internal/exception/DerivedTypedElementEvaluationException.java index 1d2eb901f0d..12fb6cfab51 100644 --- a/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.core/src/org/eclipse/papyrus/emf/facet/efacet/core/internal/exception/DerivedTypedElementEvaluationException.java +++ b/plugins/facet/org.eclipse.papyrus.emf.facet.efacet.core/src/org/eclipse/papyrus/emf/facet/efacet/core/internal/exception/DerivedTypedElementEvaluationException.java @@ -1,44 +1,44 @@ -/**
- * Copyright (c) 2009 Mia-Software.
- * 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:
- * Gregoire Dupe (Mia-Software) - initial API and implementation
- * Nicolas Bros (Mia-Software) - Bug 362191 - [Restructuring] Query mechanism for eFacet2
- */
-package org.eclipse.papyrus.emf.facet.efacet.core.internal.exception;
-
-import org.eclipse.papyrus.emf.facet.efacet.core.exception.DerivedTypedElementException;
-import org.eclipse.papyrus.emf.facet.util.core.internal.ErrorHandlingUtils;
-
-/**
- * This exception occurs when something goes wrong during the execution of a query.
- *
- * @since 0.2
- */
-public class DerivedTypedElementEvaluationException extends DerivedTypedElementException {
- // This class is a copy of
- // org.eclipse.papyrus.emf.facet.infra.query.core.ModelQueryExecutionException
-
- private static final long serialVersionUID = -8464252257666617685L;
-
- public DerivedTypedElementEvaluationException(final String message) {
- super(message);
- }
-
- public DerivedTypedElementEvaluationException(final String message, final Throwable cause) {
- super(message, cause);
- }
-
- public DerivedTypedElementEvaluationException(final Throwable cause) {
- super(cause);
- }
-
- /** Constructor for evaluation exception due to wrong type */
- public DerivedTypedElementEvaluationException(final String message, final Class<?> expectedType, final Object resultElement) {
- super(ErrorHandlingUtils.buildWrongTypeMessage(message, expectedType, resultElement));
- }
-}
+/** + * Copyright (c) 2009 Mia-Software. + * 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: + * Gregoire Dupe (Mia-Software) - initial API and implementation + * Nicolas Bros (Mia-Software) - Bug 362191 - [Restructuring] Query mechanism for eFacet2 + */ +package org.eclipse.papyrus.emf.facet.efacet.core.internal.exception; + +import org.eclipse.papyrus.emf.facet.efacet.core.exception.DerivedTypedElementException; +import org.eclipse.papyrus.emf.facet.util.core.internal.ErrorHandlingUtils; + +/** + * This exception occurs when something goes wrong during the execution of a query. + * + * @since 0.2 + */ +public class DerivedTypedElementEvaluationException extends DerivedTypedElementException { + // This class is a copy of + // org.eclipse.papyrus.emf.facet.infra.query.core.ModelQueryExecutionException + + private static final long serialVersionUID = -8464252257666617685L; + + public DerivedTypedElementEvaluationException(final String message) { + super(message); + } + + public DerivedTypedElementEvaluationException(final String message, final Throwable cause) { + super(message, cause); + } + + public DerivedTypedElementEvaluationException(final Throwable cause) { + super(cause); + } + + /** Constructor for evaluation exception due to wrong type */ + public DerivedTypedElementEvaluationException(final String message, final Class<?> expectedType, final Object resultElement) { + super(ErrorHandlingUtils.buildWrongTypeMessage(message, expectedType, resultElement)); + } +} |