Commit | Line | Data |
---|---|---|
a52fde77 AM |
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> | |
063f0d27 | 5 | * |
a52fde77 AM |
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 | |
063f0d27 | 10 | * |
a52fde77 AM |
11 | *******************************************************************************/ |
12 | ||
6d08acca | 13 | package org.eclipse.linuxtools.tmf.core.exceptions; |
a52fde77 AM |
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. | |
063f0d27 | 19 | * |
a52fde77 AM |
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). | |
063f0d27 AM |
22 | * |
23 | * @author Alexandre Montplaisir | |
24 | * | |
a52fde77 AM |
25 | */ |
26 | public class StateValueTypeException extends Exception { | |
27 | ||
a52fde77 AM |
28 | private static final long serialVersionUID = -4548793451746144513L; |
29 | ||
063f0d27 AM |
30 | /** |
31 | * Default constructor | |
32 | */ | |
a6817576 AM |
33 | public StateValueTypeException() { |
34 | super(); | |
35 | } | |
36 | ||
063f0d27 AM |
37 | /** |
38 | * Constructor with a message | |
39 | * | |
40 | * @param message | |
41 | * Message to attach to this exception | |
42 | */ | |
a6817576 AM |
43 | public StateValueTypeException(String message) { |
44 | super(message); | |
45 | } | |
a52fde77 | 46 | } |