graph: add messages to IllegalStateExceptions
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.graph.core / src / org / eclipse / tracecompass / analysis / graph / core / base / TmfVertex.java
index 1a9aaaa01ad1c86ab2eca6bd5b5d43c1c8c309a6..e2c20089a23c6cd6f7bcf7ce76b6720401a45b01 100644 (file)
@@ -232,7 +232,7 @@ public class TmfVertex implements Comparable<TmfVertex> {
         case INCOMING_HORIZONTAL_EDGE:
             return fIncomingHorizontal;
         default:
-            throw new IllegalStateException();
+            throw new IllegalStateException("Unknown edge direction type : " + dir); //$NON-NLS-1$
         }
     }
 
@@ -258,7 +258,7 @@ public class TmfVertex implements Comparable<TmfVertex> {
             fIncomingHorizontal = null;
             break;
         default:
-            throw new IllegalStateException();
+            throw new IllegalStateException("Unknown edge direction type : " + dir); //$NON-NLS-1$
         }
     }
 
@@ -287,7 +287,7 @@ public class TmfVertex implements Comparable<TmfVertex> {
         case INCOMING_HORIZONTAL_EDGE:
             return edge.getVertexFrom();
         default:
-            throw new IllegalStateException();
+            throw new IllegalStateException("Unknown edge direction type : " + dir); //$NON-NLS-1$
         }
     }
 
This page took 0.041922 seconds and 5 git commands to generate.