Promote MessageRegistry to pcep-api
[bgpcep.git] / pcep / api / src / main / java / org / opendaylight / protocol / pcep / PCEPDeserializerException.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.protocol.pcep;
9
10 /**
11  * Used when something occurs during parsing bytes to java objects.
12  */
13 public class PCEPDeserializerException extends Exception {
14     private static final long serialVersionUID = 1L;
15
16     /**
17      * Used when no exact error (from an RFC or from a draft) is specified.
18      *
19      * @param err error message describing the error that occurred
20      */
21     public PCEPDeserializerException(final String err) {
22         super(err);
23     }
24
25     /**
26      * Used when we want to pass also the exception that occurred.
27      *
28      * @param err error message describing the error that occurred
29      * @param cause specific exception that occurred
30      */
31     public PCEPDeserializerException(final String err, final Throwable cause) {
32         super(err, cause);
33     }
34 }