ctf: Don't include all test traces in jar
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / exceptions / StateValueTypeException.java
index d1eac0c25f71a0d755077f9c2aed2f3310e0f08d..d508cf5633497a620fad060b14a4262863a683c6 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012, 2014 Ericsson
  * Copyright (c) 2010, 2011 École Polytechnique de Montréal
  * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
  *
@@ -20,10 +20,13 @@ package org.eclipse.linuxtools.tmf.core.exceptions;
  * This exception is thrown if the user tries to unbox a StateValue with an
  * incorrect type (for example, tries to read a String value as an Int).
  *
- * @author Alexandre Montplaisir
+ * To avoid it, always check for the state value's type before attempting to
+ * unbox it, via
+ * {@link org.eclipse.linuxtools.tmf.core.statevalue.ITmfStateValue#getType()}.
  *
+ * @author Alexandre Montplaisir
  */
-public class StateValueTypeException extends Exception {
+public class StateValueTypeException extends RuntimeException {
 
     private static final long serialVersionUID = -4548793451746144513L;
 
@@ -51,6 +54,7 @@ public class StateValueTypeException extends Exception {
      *            Message to attach to this exception
      * @param e
      *            Cause of this exception
+     * @since 3.0
      */
     public StateValueTypeException(String message, Throwable e) {
         super(message, e);
This page took 0.027069 seconds and 5 git commands to generate.