Exceptions are serializable and therefore should have a serial
version. Fixes Eclipse warnings pointing this out.
Change-Id: I2cf04412709cf3214b53aa3ac5dc40f332f67295
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
8b8f15eaed3f4ff2e4acba53e04f2c34b6861e2f)
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
/**
* BadSchema exception is thrown when the received schema is invalid.
*/
public class BadSchemaException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
/**
* BadSchema exception is thrown when the received schema is invalid.
*/
public class BadSchemaException extends RuntimeException {
+ private static final long serialVersionUID = -7045398620135011253L;
- public BadSchemaException(String message) {
+ public BadSchemaException(final String message) {
- public BadSchemaException(String message, Throwable cause) {
+ public BadSchemaException(final String message, final Throwable cause) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
/**
* This exception is thrown when a ColumnSchema cannot be found.
*/
public class ColumnSchemaNotFoundException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
/**
* This exception is thrown when a ColumnSchema cannot be found.
*/
public class ColumnSchemaNotFoundException extends RuntimeException {
+ private static final long serialVersionUID = -5273616784432907818L;
- public ColumnSchemaNotFoundException(String message) {
+ public ColumnSchemaNotFoundException(final String message) {
- public ColumnSchemaNotFoundException(String message, Throwable cause) {
+ public ColumnSchemaNotFoundException(final String message, final Throwable cause) {
- public static String createMessage(String columnName, String tableName) {
+ public static String createMessage(final String columnName, final String tableName) {
return "Unable to locate ColumnSchema for " + columnName + " in " + tableName;
}
return "Unable to locate ColumnSchema for " + columnName + " in " + tableName;
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
/**
* InvalidEncodingException in cases where something is not UTF-8 Encoded.
*/
public class InvalidEncodingException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
/**
* InvalidEncodingException in cases where something is not UTF-8 Encoded.
*/
public class InvalidEncodingException extends RuntimeException {
+ private static final long serialVersionUID = -6333965543652086978L;
private final String actual;
private final String actual;
- public InvalidEncodingException(String actual, String message) {
+ public InvalidEncodingException(final String actual, final String message) {
super(message);
this.actual = actual;
}
super(message);
this.actual = actual;
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
/**
* The ParsingException is thrown when JSON could not be successfully parsed.
*/
public class ParsingException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
/**
* The ParsingException is thrown when JSON could not be successfully parsed.
*/
public class ParsingException extends RuntimeException {
+ private static final long serialVersionUID = -3950575478467855764L;
public ParsingException() {
}
public ParsingException() {
}
- public ParsingException(String message) {
+ public ParsingException(final String message) {
- public ParsingException(String message, Throwable cause) {
+ public ParsingException(final String message, final Throwable cause) {
- public ParsingException(Throwable cause) {
+ public ParsingException(final Throwable cause) {
- public ParsingException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
+ public ParsingException(final String message, final Throwable cause, final boolean enableSuppression,
+ final boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
super(message, cause, enableSuppression, writableStackTrace);
}
}
* and the version requirements are not met.
*/
public class SchemaVersionMismatchException extends RuntimeException {
* and the version requirements are not met.
*/
public class SchemaVersionMismatchException extends RuntimeException {
+ private static final long serialVersionUID = -5194270510726950745L;
- public SchemaVersionMismatchException(Version schemaVersion, Version fromVersion, Version untilVersion) {
+ public SchemaVersionMismatchException(final Version schemaVersion, final Version fromVersion,
+ final Version untilVersion) {
super("The schema version used to access the table/column (" + schemaVersion + ") does not match the required"
+ " version (from " + fromVersion + " to " + untilVersion + ")");
}
super("The schema version used to access the table/column (" + schemaVersion + ") does not match the required"
+ " version (from " + fromVersion + " to " + untilVersion + ")");
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
/**
* This exception is thrown when a TableSchema cannot be found.
*/
public class TableSchemaNotFoundException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
/**
* This exception is thrown when a TableSchema cannot be found.
*/
public class TableSchemaNotFoundException extends RuntimeException {
+ private static final long serialVersionUID = -5030339562929850369L;
- public TableSchemaNotFoundException(String message) {
+ public TableSchemaNotFoundException(final String message) {
- public TableSchemaNotFoundException(String message, Throwable cause) {
+ public TableSchemaNotFoundException(final String message, final Throwable cause) {
- public static String createMessage(String tableName, String schemaName) {
+ public static String createMessage(final String tableName, final String schemaName) {
return "Unable to locate TableSchema for " + tableName + " in " + schemaName;
}
return "Unable to locate TableSchema for " + tableName + " in " + schemaName;
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
/**
* This is a generic exception thrown by the Typed Schema utilities.
*/
public class TyperException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
/**
* This is a generic exception thrown by the Typed Schema utilities.
*/
public class TyperException extends RuntimeException {
+ private static final long serialVersionUID = 5464754787320848910L;
- public TyperException(String message) {
+ public TyperException(final String message) {
- public TyperException(String message, Throwable cause) {
+ public TyperException(final String message, final Throwable cause) {
super(message, cause);
}
}
super(message, cause);
}
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
/**
* This exception is thrown when a result does not meet any of the known formats in RFC7047.
*/
public class UnexpectedResultException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
/**
* This exception is thrown when a result does not meet any of the known formats in RFC7047.
*/
public class UnexpectedResultException extends RuntimeException {
- public UnexpectedResultException(String message) {
+ private static final long serialVersionUID = 7440870601052355685L;
+
+ public UnexpectedResultException(final String message) {
- public UnexpectedResultException(String message, Throwable cause) {
+ public UnexpectedResultException(final String message, final Throwable cause) {
super(message, cause);
}
}
super(message, cause);
}
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
public class UnsupportedArgumentException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
public class UnsupportedArgumentException extends RuntimeException {
+ private static final long serialVersionUID = -160548497974342130L;
- public UnsupportedArgumentException(String message) {
+ public UnsupportedArgumentException(final String message) {
- public UnsupportedArgumentException(String message, Throwable cause) {
+ public UnsupportedArgumentException(final String message, final Throwable cause) {
super(message, cause);
}
}
super(message, cause);
}
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.ovsdb.lib.error;
public class UnsupportedMethodException extends RuntimeException {
package org.opendaylight.ovsdb.lib.error;
public class UnsupportedMethodException extends RuntimeException {
+ private static final long serialVersionUID = -1665779125782132104L;
- public UnsupportedMethodException(String message) {
+ public UnsupportedMethodException(final String message) {
- public UnsupportedMethodException(String message, Throwable cause) {
+ public UnsupportedMethodException(final String message, final Throwable cause) {
super(message, cause);
}
}
super(message, cause);
}
}