2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.protocol.pcep.spi;
11 * Used when something occurs during parsing bytes to java objects.
13 public class PCEPDeserializerException extends Exception {
14 private static final long serialVersionUID = 1L;
17 * Used when no exact error (from rfc or from draft) is specified.
19 * @param err error message describing the error that occurred
21 public PCEPDeserializerException(final String err) {
26 * Used when we want to pass also the exception that occurred.
28 * @param err error message describing the error that occurred
29 * @param e specific exception that occurred
31 public PCEPDeserializerException(final String err, final Throwable e) {