Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""TeamDrive Lookup Exception"""
class NoValidUrlKeyFound(PyGsheetsException):
"""No valid key found in URL."""
class IncorrectCellLabel(PyGsheetsException):
"""The cell label is incorrect."""
class RequestError(PyGsheetsException):
"""Error while sending API request."""
class InvalidArgumentValue(PyGsheetsException):
"""Invalid value for argument"""
class InvalidUser(PyGsheetsException):
"""Invalid user/domain"""
class CannotRemoveOwnerError(PyGsheetsException):
"""A owner permission cannot be removed if is the last one."""
"""Range lookup exception."""
class TeamDriveNotFound(PyGsheetsException):
"""TeamDrive Lookup Exception"""
class NoValidUrlKeyFound(PyGsheetsException):
"""No valid key found in URL."""
class IncorrectCellLabel(PyGsheetsException):
"""The cell label is incorrect."""
class RequestError(PyGsheetsException):
"""Error while sending API request."""
class InvalidArgumentValue(PyGsheetsException):
"""Invalid value for argument"""
class InvalidUser(PyGsheetsException):
"""Invalid user/domain"""
class CannotRemoveOwnerError(PyGsheetsException):
"""A owner permission cannot be removed if is the last one."""
"""An error during authentication process."""
class SpreadsheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible spreadsheet."""
class WorksheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible worksheet."""
class CellNotFound(PyGsheetsException):
"""Cell lookup exception."""
class RangeNotFound(PyGsheetsException):
"""Range lookup exception."""
class NoValidUrlKeyFound(PyGsheetsException):
"""No valid key found in URL."""
class IncorrectCellLabel(PyGsheetsException):
"""The cell label is incorrect."""
class RequestTimeout(PyGsheetsException):
"""Error while sending API request."""
class InvalidArgumentValue(PyGsheetsException):
"""Range lookup exception."""
class NoValidUrlKeyFound(PyGsheetsException):
"""No valid key found in URL."""
class IncorrectCellLabel(PyGsheetsException):
"""The cell label is incorrect."""
class RequestTimeout(PyGsheetsException):
"""Error while sending API request."""
class InvalidArgumentValue(PyGsheetsException):
"""Invalid value for argument"""
class InvalidUser(PyGsheetsException):
"""Invalid user/domain"""
"""Trying to open non-existent or inaccessible worksheet."""
class CellNotFound(PyGsheetsException):
"""Cell lookup exception."""
class RangeNotFound(PyGsheetsException):
"""Range lookup exception."""
class TeamDriveNotFound(PyGsheetsException):
"""TeamDrive Lookup Exception"""
class NoValidUrlKeyFound(PyGsheetsException):
"""No valid key found in URL."""
class IncorrectCellLabel(PyGsheetsException):
"""The cell label is incorrect."""
class RequestError(PyGsheetsException):
"""Error while sending API request."""
class InvalidArgumentValue(PyGsheetsException):
"""Invalid value for argument"""
class InvalidUser(PyGsheetsException):
# -*- coding: utf-8 -*-
"""
pygsheets.exceptions
~~~~~~~~~~~~~~~~~~~~
Exceptions used in pygsheets.
"""
class PyGsheetsException(Exception):
"""A base class for pygsheets's exceptions."""
class AuthenticationError(PyGsheetsException):
"""An error during authentication process."""
class SpreadsheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible spreadsheet."""
class WorksheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible worksheet."""
class CellNotFound(PyGsheetsException):
"""Cell lookup exception."""
class RangeNotFound(PyGsheetsException):
# -*- coding: utf-8 -*-
"""
pygsheets.exceptions
~~~~~~~~~~~~~~~~~~~~
Exceptions used in pygsheets.
"""
class PyGsheetsException(Exception):
"""A base class for pygsheets's exceptions."""
class AuthenticationError(PyGsheetsException):
"""An error during authentication process."""
class SpreadsheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible spreadsheet."""
class WorksheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible worksheet."""
class CellNotFound(PyGsheetsException):
"""Cell lookup exception."""
class RangeNotFound(PyGsheetsException):
"""A base class for pygsheets's exceptions."""
class AuthenticationError(PyGsheetsException):
"""An error during authentication process."""
class SpreadsheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible spreadsheet."""
class WorksheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible worksheet."""
class CellNotFound(PyGsheetsException):
"""Cell lookup exception."""
class RangeNotFound(PyGsheetsException):
"""Range lookup exception."""
class TeamDriveNotFound(PyGsheetsException):
"""TeamDrive Lookup Exception"""
class NoValidUrlKeyFound(PyGsheetsException):
"""No valid key found in URL."""
class IncorrectCellLabel(PyGsheetsException):
"""Trying to open non-existent or inaccessible spreadsheet."""
class WorksheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible worksheet."""
class CellNotFound(PyGsheetsException):
"""Cell lookup exception."""
class RangeNotFound(PyGsheetsException):
"""Range lookup exception."""
class TeamDriveNotFound(PyGsheetsException):
"""TeamDrive Lookup Exception"""
class NoValidUrlKeyFound(PyGsheetsException):
"""No valid key found in URL."""
class IncorrectCellLabel(PyGsheetsException):
"""The cell label is incorrect."""
class RequestError(PyGsheetsException):
"""Error while sending API request."""
class InvalidArgumentValue(PyGsheetsException):
"""
class PyGsheetsException(Exception):
"""A base class for pygsheets's exceptions."""
class AuthenticationError(PyGsheetsException):
"""An error during authentication process."""
class SpreadsheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible spreadsheet."""
class WorksheetNotFound(PyGsheetsException):
"""Trying to open non-existent or inaccessible worksheet."""
class CellNotFound(PyGsheetsException):
"""Cell lookup exception."""
class RangeNotFound(PyGsheetsException):
"""Range lookup exception."""
class NoValidUrlKeyFound(PyGsheetsException):
"""No valid key found in URL."""
class IncorrectCellLabel(PyGsheetsException):