-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathexceptions.py
48 lines (33 loc) · 1.17 KB
/
exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright (c) 2017 pandas-gbq Authors All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
class GenericGBQException(ValueError):
"""
Raised when an unrecognized Google API Error occurs.
"""
class AccessDenied(ValueError):
"""
Raised when invalid credentials are provided, or tokens have expired.
"""
class ConversionError(GenericGBQException):
"""
Raised when there is a problem converting the DataFrame to a format
required to upload it to BigQuery.
"""
class InvalidPrivateKeyFormat(ValueError):
"""
Raised when provided private key has invalid format.
"""
class LargeResultsWarning(UserWarning):
"""Raise when results are beyond that recommended for pandas DataFrame."""
class PerformanceWarning(RuntimeWarning):
"""
Raised when a performance-related feature is requested, but unsupported.
Such warnings can occur when dependencies for the requested feature
aren't up-to-date.
"""
class QueryTimeout(ValueError):
"""
Raised when the query request exceeds the timeoutMs value specified in the
BigQuery configuration.
"""