rcp: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.ctf.core / src / org / eclipse / tracecompass / ctf / core / CTFException.java
CommitLineData
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 13package 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 21 */
680f9173 22public class CTFException extends Exception {
866e5b51
FC
23
24 private static final long serialVersionUID = 2065258365219777672L;
25
26 /**
27 * Default constructor with no message.
28 */
680f9173 29 public CTFException() {
866e5b51
FC
30 super();
31 }
32
33 /**
34 * Constructor with an attached message.
35 *
36 * @param message
be6df2d8 37 * The message attached to this exception
866e5b51 38 */
680f9173 39 public CTFException(String message) {
866e5b51
FC
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 48 */
680f9173 49 public CTFException(Exception e) {
866e5b51
FC
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 60 */
680f9173 61 public CTFException(String message, Throwable exception) {
4311ac8b
MAL
62 super(message, exception);
63 }
64
866e5b51 65}
This page took 0.064966 seconds and 5 git commands to generate.