blob: 1f68b161a44b0a1fb21e7fb111dab93db4cf1d33 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/*******************************************************************************
* Copyright (c) 2011 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:
* Emmanuelle Rouillé (Mia-Software) - Bug 352618 - To be able to use non derived facet structural features and save them values.
* Nicolas Bros (Mia-Software) - Bug 361612 - New core for new version of the Facet metamodel
*******************************************************************************/
package org.eclipse.emf.facet.efacet.core.internal.exception;
import org.eclipse.emf.facet.efacet.core.exception.FacetManagerException;
import org.eclipse.emf.facet.util.core.internal.ErrorHandlingUtils;
/**
* This exception is raised when a value's type does not match with the expected type
*
* @since 0.2
*/
public class UnmatchingExpectedTypeException extends FacetManagerException {
private static final long serialVersionUID = 1456802297756942271L;
public UnmatchingExpectedTypeException() {
super();
}
public UnmatchingExpectedTypeException(final String message) {
super(message);
}
public UnmatchingExpectedTypeException(final String message, final Throwable cause) {
super(message, cause);
}
public UnmatchingExpectedTypeException(final Throwable cause) {
super(cause);
}
public UnmatchingExpectedTypeException(final String message, final Class<?> expectedType, final Object resultElement) {
super(ErrorHandlingUtils.buildWrongTypeMessage(message, expectedType, resultElement));
}
}
|