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

lyndsi pushed a commit to branch 
lyndsi/sql-lab-new-explore-button-functionality-and-move-save-dataset-to-split-save-button
in repository https://gitbox.apache.org/repos/asf/superset.git

commit deb0a63b8604e6daf7693033ef741b00481da430
Author: Hugh A. Miles II <[email protected]>
AuthorDate: Thu Jul 7 20:58:31 2022 +0000

    working samples endpoint for query
---
 superset/datasource/commands/exceptions.py | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/superset/datasource/commands/exceptions.py 
b/superset/datasource/commands/exceptions.py
new file mode 100644
index 0000000000..89c87e38cb
--- /dev/null
+++ b/superset/datasource/commands/exceptions.py
@@ -0,0 +1,26 @@
+# 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.
+
+from superset.exceptions import SupersetException
+
+
+class DatasourceForbiddenError(SupersetException):
+    message = "Datasource does not exist"
+
+
+class DatasourceSamplesFailedError(SupersetException):
+    message = "Datasource Failed to fetch samples"

Reply via email to