Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/google/cloud/bigquery/dbapi/exceptions.py: 100%
11 statements
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:07 +0000
« prev ^ index » next coverage.py v7.2.2, created at 2023-03-26 06:07 +0000
1# Copyright 2017 Google LLC
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
15"""Exceptions used in the Google BigQuery DB-API."""
18class Warning(Exception):
19 """Exception raised for important DB-API warnings."""
22class Error(Exception):
23 """Exception representing all non-warning DB-API errors."""
26class InterfaceError(Error):
27 """DB-API error related to the database interface."""
30class DatabaseError(Error):
31 """DB-API error related to the database."""
34class DataError(DatabaseError):
35 """DB-API error due to problems with the processed data."""
38class OperationalError(DatabaseError):
39 """DB-API error related to the database operation.
41 These errors are not necessarily under the control of the programmer.
42 """
45class IntegrityError(DatabaseError):
46 """DB-API error when integrity of the database is affected."""
49class InternalError(DatabaseError):
50 """DB-API error when the database encounters an internal error."""
53class ProgrammingError(DatabaseError):
54 """DB-API exception raised for programming errors."""
57class NotSupportedError(DatabaseError):
58 """DB-API error for operations not supported by the database or API."""