lttng: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.pcap.core / src / org / eclipse / linuxtools / internal / pcap / core / trace / BadPcapFileException.java
CommitLineData
5255c030
VP
1/*******************************************************************************
2 * Copyright (c) 2014 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made 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 * Vincent Perot - Initial API and implementation
11 *******************************************************************************/
12
93d1d135 13package org.eclipse.linuxtools.internal.pcap.core.trace;
5255c030
VP
14
15/**
16 * Exception that is thrown when the Pcap file is not valid.
17 *
18 * @author Vincent Perot
19 */
20public class BadPcapFileException extends Exception {
21
22 private static final long serialVersionUID = 8228512814116052260L;
23
24 /**
25 * Default constructor with no message.
26 */
27 public BadPcapFileException() {
28 super();
29 }
30
31 /**
32 * Constructor with an attached message.
33 *
34 * @param message
35 * The message attached to this exception
36 */
37 public BadPcapFileException(String message) {
38 super(message);
39 }
40
41 /**
42 * Re-throw an exception into this type.
43 *
44 * @param e
45 * The previous Exception we caught
46 */
47 public BadPcapFileException(Exception e) {
48 super(e);
49 }
50
51 /**
52 * Constructor with an attached message and re-throw an exception into this
53 * type.
54 *
55 * @param message
56 * The message attached to this exception
57 * @param exception
58 * The previous Exception caught
59 */
60 public BadPcapFileException(String message, Throwable exception) {
61 super(message, exception);
62 }
63
64}
This page took 0.049643 seconds and 5 git commands to generate.