Allow PacketException to store the cause
[controller.git] / opendaylight / commons / liblldp / src / main / java / org / opendaylight / controller / liblldp / PacketException.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.liblldp;
9
10 /**
11  * Describes an exception that is raised when the process of serializing or
12  * deserializing a network packet/stream fails. This generally happens when the
13  * packet/stream is malformed.
14  *
15  */
16 public class PacketException extends Exception {
17     private static final long serialVersionUID = 1L;
18
19     public PacketException(final String message) {
20         super(message);
21     }
22
23     public PacketException(String message, Throwable cause) {
24         super(message, cause);
25     }
26 }