Merge "Refactor ConvertORTopoToTapiTopoTest"
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / openroadminterfaces / OpenRoadmInterfaceException.java
1 /*
2  * Copyright © 2017 AT&T 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
9 package org.opendaylight.transportpce.common.openroadminterfaces;
10
11 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
12
13 @SuppressWarnings("serial")
14 @SuppressFBWarnings(
15     value = "SE_NO_SERIALVERSIONID",
16     justification = "https://github.com/rzwitserloot/lombok/wiki/WHY-NOT:-serialVersionUID")
17 public class OpenRoadmInterfaceException extends Exception {
18
19     public OpenRoadmInterfaceException(String message) {
20         super(message);
21     }
22
23     public OpenRoadmInterfaceException(String message, Throwable cause) {
24         super(message, cause);
25     }
26
27     public static final String mapping_msg_err(String node, String port) {
28         return String.format(
29             "Unable to get mapping from PortMapping for node %s and logical connection port %s", node, port);
30     }
31
32     public static final String mapping_xpdrtype_err(String node, String port) {
33         return String.format(
34                 "Unable to get XpdrType from PortMapping for node % and logical connection port %s", node, port);
35     }
36 }