This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 5bc4bf19592 Add serialVersionUID to custom exception classes (#37234)
5bc4bf19592 is described below

commit 5bc4bf19592d16bd2eb132d3172b7dad56c6917c
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Nov 30 22:32:43 2025 +0800

    Add serialVersionUID to custom exception classes (#37234)
---
 .../shardingsphere/mode/exception/LoadTableMetaDataFailedException.java | 2 ++
 .../apache/shardingsphere/mode/exception/MetaDataPersistException.java  | 2 ++
 .../manager/cluster/exception/ReloadMetaDataContextFailedException.java | 2 ++
 3 files changed, 6 insertions(+)

diff --git 
a/mode/core/src/main/java/org/apache/shardingsphere/mode/exception/LoadTableMetaDataFailedException.java
 
b/mode/core/src/main/java/org/apache/shardingsphere/mode/exception/LoadTableMetaDataFailedException.java
index cf2c767ab5d..6213f5626d2 100644
--- 
a/mode/core/src/main/java/org/apache/shardingsphere/mode/exception/LoadTableMetaDataFailedException.java
+++ 
b/mode/core/src/main/java/org/apache/shardingsphere/mode/exception/LoadTableMetaDataFailedException.java
@@ -28,6 +28,8 @@ import java.util.Collection;
  */
 public final class LoadTableMetaDataFailedException extends 
MetaDataSQLException {
     
+    private static final long serialVersionUID = -1815882437319677159L;
+    
     public LoadTableMetaDataFailedException(final String databaseName, final 
SQLException cause) {
         super(XOpenSQLState.GENERAL_ERROR, 12, cause, "Load table meta data 
failed for database '%s'.", databaseName);
     }
diff --git 
a/mode/core/src/main/java/org/apache/shardingsphere/mode/exception/MetaDataPersistException.java
 
b/mode/core/src/main/java/org/apache/shardingsphere/mode/exception/MetaDataPersistException.java
index bdf1947bc15..fc73caf9ee4 100644
--- 
a/mode/core/src/main/java/org/apache/shardingsphere/mode/exception/MetaDataPersistException.java
+++ 
b/mode/core/src/main/java/org/apache/shardingsphere/mode/exception/MetaDataPersistException.java
@@ -25,6 +25,8 @@ import 
org.apache.shardingsphere.infra.exception.external.sql.type.kernel.catego
  */
 public abstract class MetaDataPersistException extends MetaDataSQLException {
     
+    private static final long serialVersionUID = 8997644844343785667L;
+    
     protected MetaDataPersistException(final SQLState sqlState, final int 
errorCode, final Exception cause, final String reason, final Object... 
messageArgs) {
         super(sqlState, errorCode, cause, reason, messageArgs);
     }
diff --git 
a/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/exception/ReloadMetaDataContextFailedException.java
 
b/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/exception/ReloadMetaDataContextFailedException.java
index 1c651679d97..48ceb63dd14 100644
--- 
a/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/exception/ReloadMetaDataContextFailedException.java
+++ 
b/mode/type/cluster/core/src/main/java/org/apache/shardingsphere/mode/manager/cluster/exception/ReloadMetaDataContextFailedException.java
@@ -25,6 +25,8 @@ import 
org.apache.shardingsphere.infra.exception.external.sql.type.kernel.catego
  */
 public final class ReloadMetaDataContextFailedException extends 
ClusterSQLException {
     
+    private static final long serialVersionUID = -2058668714389031484L;
+    
     public ReloadMetaDataContextFailedException() {
         super(XOpenSQLState.GENERAL_ERROR, 11, "Failed to reload meta data 
context.");
     }

Reply via email to