Remove yang-test
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / ModuleFactoryNotFoundException.java
1 /*
2  * Copyright (c) 2015 Brocade Communications 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.config.api;
9
10 /**
11  * Exception thrown when a ModuleFactory is not found while pushing a config.
12  *
13  * @author Thomas Pantelis
14  */
15 public class ModuleFactoryNotFoundException extends RuntimeException {
16     private static final long serialVersionUID = 1L;
17
18     private final String moduleName;
19
20     public ModuleFactoryNotFoundException(final String moduleName) {
21         super("ModuleFactory not found for module name: " + moduleName);
22         this.moduleName = moduleName;
23     }
24
25     public String getModuleName() {
26         return moduleName;
27     }
28 }