*/
package org.opendaylight.protocol.bgp.parser;
-import org.opendaylight.protocol.framework.DeserializerException;
/**
*
* Used when something occurs during the parsing to get Update Message.
*
*/
-public class BGPParsingException extends DeserializerException {
-
- private static final long serialVersionUID = -6893285837086620580L;
-
- private final String message;
+public class BGPParsingException extends Exception {
+ private static final long serialVersionUID = 1L;
/**
*
*/
public BGPParsingException(final String err) {
super(err);
- this.message = err;
}
/**
*/
public BGPParsingException(final String message, final Exception cause){
super(message, cause);
- this.message = message;
}
/**
*
* @return error message.
+ *
+ * @deprecated Use getMessage() instead.
*/
+ @Deprecated
public String getError() {
- return this.message;
+ return this.getMessage();
}
}