Fix string issue in OpenRoadmInterfaceException
[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 @SuppressWarnings("serial")
12 @edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
13     value = "SE_NO_SERIALVERSIONID",
14     justification = "https://github.com/rzwitserloot/lombok/wiki/WHY-NOT:-serialVersionUID")
15 public class OpenRoadmInterfaceException extends Exception {
16
17     public OpenRoadmInterfaceException(String message) {
18         super(message);
19     }
20
21     public OpenRoadmInterfaceException(String message, Throwable cause) {
22         super(message, cause);
23     }
24
25     public static final String mapping_msg_err(String node, String port) {
26         return String.format(
27             "Unable to get mapping from PortMapping for node %s and logical connection port %s", node, port);
28     }
29 }