Commit | Line | Data |
---|---|---|
866e5b51 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2011, 2014 Ericsson, Ecole Polytechnique de Montreal |
866e5b51 FC |
3 | * |
4 | * All rights reserved. This program and the accompanying materials are made | |
5 | * available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
c0804cf6 AM |
9 | * Contributors: |
10 | * Alexandre Montplaisir - Initial API and implementation | |
866e5b51 FC |
11 | *******************************************************************************/ |
12 | ||
453a59f0 | 13 | package org.eclipse.tracecompass.ctf.core; |
866e5b51 FC |
14 | |
15 | /** | |
16 | * General exception that is thrown when there is a problem somewhere with the | |
17 | * CTF trace reader. | |
a94410d9 | 18 | * |
d37aaa7f | 19 | * @author Alexandre Montplaisir |
dbc7991d | 20 | * @since 1.0 |
866e5b51 FC |
21 | */ |
22 | public class CTFReaderException extends Exception { | |
23 | ||
24 | private static final long serialVersionUID = 2065258365219777672L; | |
25 | ||
26 | /** | |
27 | * Default constructor with no message. | |
28 | */ | |
29 | public CTFReaderException() { | |
30 | super(); | |
31 | } | |
32 | ||
33 | /** | |
34 | * Constructor with an attached message. | |
35 | * | |
36 | * @param message | |
be6df2d8 | 37 | * The message attached to this exception |
866e5b51 FC |
38 | */ |
39 | public CTFReaderException(String message) { | |
40 | super(message); | |
41 | } | |
42 | ||
43 | /** | |
44 | * Re-throw an exception into this type. | |
45 | * | |
46 | * @param e | |
be6df2d8 | 47 | * The previous Exception we caught |
866e5b51 FC |
48 | */ |
49 | public CTFReaderException(Exception e) { | |
50 | super(e); | |
51 | } | |
a94410d9 | 52 | |
4311ac8b MAL |
53 | /** |
54 | * Constructor with an attached message and re-throw an exception into this type. | |
55 | * | |
56 | * @param message | |
57 | * The message attached to this exception | |
58 | * @param exception | |
59 | * The previous Exception caught | |
4311ac8b MAL |
60 | */ |
61 | public CTFReaderException(String message, Throwable exception) { | |
62 | super(message, exception); | |
63 | } | |
64 | ||
866e5b51 | 65 | } |