rcp: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.ctf.core / src / org / eclipse / tracecompass / ctf / core / CTFException.java
1 /*******************************************************************************
2 * Copyright (c) 2011, 2014 Ericsson, Ecole Polytechnique de Montreal
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 *
9 * Contributors:
10 * Alexandre Montplaisir - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.ctf.core;
14
15 /**
16 * General exception that is thrown when there is a problem somewhere with the
17 * CTF trace reader.
18 *
19 * @author Alexandre Montplaisir
20 * @since 1.0
21 */
22 public class CTFException extends Exception {
23
24 private static final long serialVersionUID = 2065258365219777672L;
25
26 /**
27 * Default constructor with no message.
28 */
29 public CTFException() {
30 super();
31 }
32
33 /**
34 * Constructor with an attached message.
35 *
36 * @param message
37 * The message attached to this exception
38 */
39 public CTFException(String message) {
40 super(message);
41 }
42
43 /**
44 * Re-throw an exception into this type.
45 *
46 * @param e
47 * The previous Exception we caught
48 */
49 public CTFException(Exception e) {
50 super(e);
51 }
52
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
60 */
61 public CTFException(String message, Throwable exception) {
62 super(message, exception);
63 }
64
65 }
This page took 0.033348 seconds and 6 git commands to generate.