Fix string issue in OpenRoadmInterfaceException
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / openroadminterfaces / OpenRoadmInterfaceException.java
index 4da6970112595cb4558512d6ceea389e5b64a100..9f058a380011e1b07ae91d9c95e3ce1e6c9cfb0a 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.transportpce.common.openroadminterfaces;
 
+@SuppressWarnings("serial")
 @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
     value = "SE_NO_SERIALVERSIONID",
     justification = "https://github.com/rzwitserloot/lombok/wiki/WHY-NOT:-serialVersionUID")
@@ -20,4 +21,9 @@ public class OpenRoadmInterfaceException extends Exception {
     public OpenRoadmInterfaceException(String message, Throwable cause) {
         super(message, cause);
     }
+
+    public static final String mapping_msg_err(String node, String port) {
+        return String.format(
+            "Unable to get mapping from PortMapping for node %s and logical connection port %s", node, port);
+    }
 }