Fix string issue in OpenRoadmInterfaceException
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / openroadminterfaces / OpenRoadmInterfaceException.java
index 200c27282366539e37e846f82f1d930c66977b04..9f058a380011e1b07ae91d9c95e3ce1e6c9cfb0a 100644 (file)
@@ -8,6 +8,10 @@
 
 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")
 public class OpenRoadmInterfaceException extends Exception {
 
     public OpenRoadmInterfaceException(String message) {
@@ -17,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);
+    }
 }