Merge "Refactor nsh fields to new encoding"
[openflowplugin.git] / extension / openflowplugin-extension-nicira / src / main / java / org / opendaylight / openflowplugin / extension / vendor / nicira / convertor / CodecPreconditionException.java
1 /**
2  * Copyright (c) 2014 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.openflowplugin.extension.vendor.nicira.convertor;
9
10 import org.opendaylight.openflowplugin.extension.api.path.AugmentationPath;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.general.rev140714.general.extension.grouping.Extension;
12
13 /**
14  * Codec precondition exception.
15  *
16  * @author msunal
17  */
18 public class CodecPreconditionException extends RuntimeException {
19
20     private static final long serialVersionUID = 4602742888420994730L;
21
22     public CodecPreconditionException(String msg) {
23         super(msg);
24     }
25
26     public CodecPreconditionException(AugmentationPath path) {
27         super("Augmentation for path " + path + " is not implemented.");
28     }
29
30     public CodecPreconditionException(Extension extension) {
31         super("Extension " + extension.getClass() + " does not contain any known augmentation. " + extension);
32     }
33 }