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

zhonghongsheng 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 762395e54c1 Remove DatabaseNotExistedException (#20065)
762395e54c1 is described below

commit 762395e54c17ab9743c6ce6ea697b5d464e6d3bd
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Aug 10 22:42:29 2022 +0800

    Remove DatabaseNotExistedException (#20065)
---
 .../exception/DatabaseNotExistedException.java     | 37 ----------------------
 1 file changed, 37 deletions(-)

diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/DatabaseNotExistedException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/DatabaseNotExistedException.java
deleted file mode 100644
index 0dd3794b740..00000000000
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/DatabaseNotExistedException.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.infra.exception;
-
-import lombok.Getter;
-import 
org.apache.shardingsphere.infra.util.exception.ShardingSphereInsideException;
-
-/**
- * Database does not exist exception.
- */
-@Getter
-public final class DatabaseNotExistedException extends 
ShardingSphereInsideException {
-    
-    private static final long serialVersionUID = -1818822065202117480L;
-    
-    private final String databaseName;
-    
-    public DatabaseNotExistedException(final String databaseName) {
-        super(String.format("Database `%s` doesn't exist.", databaseName));
-        this.databaseName = databaseName;
-    }
-}

Reply via email to