statesystem: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / statesystem / org.eclipse.tracecompass.statesystem.core / src / org / eclipse / tracecompass / statesystem / core / exceptions / TimeRangeException.java
1 /*******************************************************************************
2 * Copyright (c) 2012, 2015 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 * Contributors:
12 * Alexandre Montplaisir - Initial API and implementation
13 * Patrick Tasse - Add message to exceptions
14 *******************************************************************************/
15
16 package org.eclipse.tracecompass.statesystem.core.exceptions;
17
18 /**
19 * Generic exception for when the user specifies an invalid time stamp. Usually
20 * timestamps must be within the range of the trace or state history being
21 * queried.
22 *
23 * For insertions, it's forbidden to insert new states "in the past" (before where
24 * the cursor is), so this exception is also thrown in that case.
25 *
26 * @author Alexandre Montplaisir
27 */
28 public class TimeRangeException extends RuntimeException {
29
30 private static final long serialVersionUID = -4067685227260254532L;
31
32 /**
33 * Default constructor
34 */
35 public TimeRangeException() {
36 }
37
38 /**
39 * Constructor with a message
40 *
41 * @param message
42 * Message to attach to this exception
43 * @since 1.0
44 */
45 public TimeRangeException(String message) {
46 super(message);
47 }
48
49 /**
50 * Constructor with both a message and a cause.
51 *
52 * @param message
53 * Message to attach to this exception
54 * @param e
55 * Cause of this exception
56 * @since 1.0
57 */
58 public TimeRangeException(String message, Throwable e) {
59 super(message, e);
60 }
61 }
This page took 0.034949 seconds and 5 git commands to generate.