1 | package de.uka.ipd.sdq.dsexplore.exception; |
2 | |
3 | import de.uka.ipd.sdq.pcm.designdecision.Choice; |
4 | import de.uka.ipd.sdq.pcm.designdecision.ContinuousRangeDegree; |
5 | import de.uka.ipd.sdq.pcm.designdecision.DegreeOfFreedomInstance; |
6 | import de.uka.ipd.sdq.pcm.designdecision.ClassChoice; |
7 | |
8 | /** |
9 | * This exception is thrown if a {@link Choice} and the linked {@link DegreeOfFreedomInstance} |
10 | * do not match by their type. |
11 | * |
12 | * Example: an |
13 | * {@link ClassChoice} links a {@link ContinuousRangeDegree}). |
14 | * |
15 | * @author martens |
16 | * |
17 | */ |
18 | public class InvalidChoiceForDegreeException extends RuntimeException { |
19 | |
20 | public InvalidChoiceForDegreeException(Choice choice) { |
21 | super("Degree "+choice.getDegreeOfFreedomInstance().getClass().getName()+" and choice "+choice.getClass().getName()+" do not match!"); |
22 | |
23 | } |
24 | |
25 | /** |
26 | * |
27 | */ |
28 | private static final long serialVersionUID = 6487974641238880884L; |
29 | |
30 | } |