Commit | Line | Data |
---|---|---|
866e5b51 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2011, 2014 Ericsson, Ecole Polytechnique de Montreal and others |
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 | * | |
9 | * Contributors: Matthew Khouzam - Initial API and implementation | |
10 | * Contributors: Simon Marchi - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
f357bcd4 | 13 | package org.eclipse.tracecompass.internal.ctf.core.event.metadata.exceptions; |
866e5b51 | 14 | |
a94410d9 | 15 | |
866e5b51 FC |
16 | /** |
17 | * <b><u>ParseException</u></b> | |
18 | */ | |
19 | public class ParseException extends Exception { | |
20 | ||
21 | private static final long serialVersionUID = 7901917601459652080L; | |
22 | ||
9ac2eb62 | 23 | /** |
a94410d9 | 24 | * Empty constructor |
9ac2eb62 | 25 | */ |
866e5b51 FC |
26 | public ParseException() { |
27 | super(); | |
28 | } | |
29 | ||
30 | /** | |
31 | * Constructor | |
32 | * | |
ecb12461 | 33 | * @param message to be sent to logs |
866e5b51 FC |
34 | */ |
35 | public ParseException(String message) { | |
36 | super(message); | |
37 | } | |
38 | ||
a94410d9 MK |
39 | /** |
40 | * Copy constructor | |
41 | * @param e the exception to throw | |
42 | */ | |
43 | public ParseException(Exception e) { | |
44 | super(e); | |
45 | } | |
466f6d95 MK |
46 | |
47 | /** | |
48 | * Constructs a new exception with the specified detail message and | |
49 | * cause. <p>Note that the detail message associated with | |
50 | * {@code cause} is <i>not</i> automatically incorporated in | |
51 | * this exception's detail message. | |
52 | * | |
53 | * @param message the detail message (which is saved for later retrieval | |
54 | * by the {@link #getMessage()} method). | |
55 | * @param cause the cause (which is saved for later retrieval by the | |
56 | * {@link #getCause()} method). (A <tt>null</tt> value is | |
57 | * permitted, and indicates that the cause is nonexistent or | |
58 | * unknown.) | |
59 | */ | |
60 | public ParseException(String message, Exception cause) { | |
61 | super(message, cause); | |
62 | } | |
866e5b51 | 63 | } |