-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathexceptions.py
37 lines (26 loc) · 925 Bytes
/
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
# 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 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.
"""