old_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  """
  zotero_errors.py
  
  Created by Stephan Hügel on 2011-03-04
  Copyright Stephan Hügel, 2011
  
  This file is part of Pyzotero.
  
  Pyzotero is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  
  Pyzotero is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with Pyzotero. If not, see <http://www.gnu.org/licenses/>.
  """
  
  
  
  # Define some exceptions
  class PyZoteroError(Exception):
      """ Generic parent exception
      """
      pass
  
  
  
  class ParamNotPassed(PyZoteroError):
      """ Raised if a parameter which is required isn't passed
      """
      pass
  
  
  
  class CallDoesNotExist(PyZoteroError):
      """ Raised if the specified API call doesn't exist
      """
      pass
  
  
  
  class UnsupportedParams(PyZoteroError):
      """ Raised when unsupported parameters are passed
      """
      pass
  
  
  
  class UserNotAuthorised(PyZoteroError):
      """ Raised when the user is not allowed to retrieve the resource
      """
      pass
  
  
  
  class TooManyItems(PyZoteroError):
      """ Raised when too many items are passed to a Write API method
      """
  
  
  
  class MissingCredentials(PyZoteroError):
      """ Raised when an attempt is made to create a Zotero instance
          without providing both the user ID and the user key
      """
      pass
  
  
  
  class ResourceNotFound(PyZoteroError):
      """ Raised when a resource (item, collection etc.) could not be found
      """
      pass
  
  
  
  class HTTPError(PyZoteroError):
      """ Raised for miscellaneous URLLib errors
      """
      pass
  
  
  
  class CouldNotReachURL(PyZoteroError):
      """ Raised when we can't reach a URL
      """
      pass
  
  
  
  class Conflict(PyZoteroError):
      """ 409 - Raised when the target library is locked
      """
      pass
  
  
  
  class PreConditionFailed(PyZoteroError):
      """ 412 - Raised when the provided X-Zotero-Write-Token has already been
          submitted
      """
      pass
  
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  """
  zotero_errors.py
  
  Created by Stephan Hügel on 2011-03-04
  Copyright Stephan Hügel, 2011
  
  This file is part of Pyzotero.
  
  Pyzotero is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  
  Pyzotero is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with Pyzotero. If not, see <http://www.gnu.org/licenses/>.
  """
  
  
  
  # Define some exceptions
  class PyZoteroError(Exception):
      """ Generic parent exception
      """
      pass
  
  
  
  class ParamNotPassed(PyZoteroError):
      """ Raised if a parameter which is required isn't passed
      """
      pass
  
  
  
  class CallDoesNotExist(PyZoteroError):
      """ Raised if the specified API call doesn't exist
      """
      pass
  
  
  
  class UnsupportedParams(PyZoteroError):
      """ Raised when unsupported parameters are passed
      """
      pass
  
  
  
  class UserNotAuthorised(PyZoteroError):
      """ Raised when the user is not allowed to retrieve the resource
      """
      pass
  
  
  
  class TooManyItems(PyZoteroError):
      """ Raised when too many items are passed to a Write API method
      """
      pass
  
  
  
  class MissingCredentials(PyZoteroError):
      """ Raised when an attempt is made to create a Zotero instance
          without providing both the user ID and the user key
      """
      pass
  
  
  
  class ResourceNotFound(PyZoteroError):
      """ Raised when a resource (item, collection etc.) could not be found
      """
      pass
  
  
  
  class HTTPError(PyZoteroError):
      """ Raised for miscellaneous URLLib errors
      """
      pass
  
  
  
  class CouldNotReachURL(PyZoteroError):
      """ Raised when we can't reach a URL
      """
      pass
  
  
  
  class Conflict(PyZoteroError):
      """ 409 - Raised when the target library is locked
      """
      pass
  
  
  
  class PreConditionFailed(PyZoteroError):
      """ 412 - Raised when the provided X-Zotero-Write-Token has already been
          submitted
      """
      pass
  
  
subject: Fix TooManyItems error