Commit | Line | Data |
---|---|---|
a52fde77 | 1 | /******************************************************************************* |
e13bd4cd | 2 | * Copyright (c) 2012, 2015 Ericsson |
a52fde77 AM |
3 | * Copyright (c) 2010, 2011 École Polytechnique de Montréal |
4 | * Copyright (c) 2010, 2011 Alexandre Montplaisir <alexandre.montplaisir@gmail.com> | |
6dd46830 | 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 | |
6dd46830 | 10 | * |
e13bd4cd PT |
11 | * Contributors: |
12 | * Alexandre Montplaisir - Initial API and implementation | |
13 | * Patrick Tasse - Add message to exceptions | |
a52fde77 AM |
14 | *******************************************************************************/ |
15 | ||
e894a508 | 16 | package org.eclipse.tracecompass.statesystem.core.exceptions; |
a52fde77 AM |
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. | |
6dd46830 | 22 | * |
a52fde77 AM |
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. | |
a52fde77 | 25 | * |
6dd46830 | 26 | * @author Alexandre Montplaisir |
a52fde77 | 27 | */ |
6dd46830 | 28 | public class TimeRangeException extends RuntimeException { |
a52fde77 | 29 | |
a52fde77 AM |
30 | private static final long serialVersionUID = -4067685227260254532L; |
31 | ||
e13bd4cd PT |
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 | } | |
a52fde77 | 61 | } |