Merge branch 'master' into lttng-luna
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / exceptions / StateValueTypeException.java
1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
3 * Copyright (c) 2010, 2011 École Polytechnique de Montréal
4 * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
5 *
6 * All rights reserved. This program and the accompanying materials are
7 * made available under the terms of the Eclipse Public License v1.0 which
8 * accompanies this distribution, and is available at
9 * http://www.eclipse.org/legal/epl-v10.html
10 *
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.core.exceptions;
14
15 /**
16 * The StateValue is a wrapper around the different type of values that can be
17 * used and stored in the state system and history. "Unboxing" the value means
18 * retrieving the base type (int, String, etc.) inside it.
19 *
20 * This exception is thrown if the user tries to unbox a StateValue with an
21 * incorrect type (for example, tries to read a String value as an Int).
22 *
23 * @author Alexandre Montplaisir
24 *
25 */
26 public class StateValueTypeException extends Exception {
27
28 private static final long serialVersionUID = -4548793451746144513L;
29
30 /**
31 * Default constructor
32 */
33 public StateValueTypeException() {
34 super();
35 }
36
37 /**
38 * Constructor with a message
39 *
40 * @param message
41 * Message to attach to this exception
42 */
43 public StateValueTypeException(String message) {
44 super(message);
45 }
46
47 /**
48 * Constructor with both a message and a cause.
49 *
50 * @param message
51 * Message to attach to this exception
52 * @param e
53 * Cause of this exception
54 */
55 public StateValueTypeException(String message, Throwable e) {
56 super(message, e);
57 }
58 }
This page took 0.032533 seconds and 6 git commands to generate.