1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
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
10 * Vincent Perot - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.pcap
.core
.packet
;
16 * Exception that is thrown when Packet is erroneous. This is different than an
17 * invalid packet. An invalid packet contains bad fields (such as bad checksum)
18 * and does not throw exceptions while an erroneous packet is a packet that is
19 * impossible to obtain. For instance, an erroneous packet can be smaller than
20 * the minimum required size. Erroneous packets throw BadPacketExceptions.
22 * @author Vincent Perot
24 public class BadPacketException
extends Exception
{
26 private static final long serialVersionUID
= 7071588720009577619L;
29 * Default constructor with no message.
31 public BadPacketException() {
36 * Constructor with an attached message.
39 * The message attached to this exception
41 public BadPacketException(String message
) {
46 * Re-throw an exception into this type.
49 * The previous Exception we caught
51 public BadPacketException(Exception e
) {
56 * Constructor with an attached message and re-throw an exception into this
60 * The message attached to this exception
62 * The previous Exception caught
64 public BadPacketException(String message
, Throwable exception
) {
65 super(message
, exception
);
This page took 0.056525 seconds and 5 git commands to generate.