exceptions.py 956 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: Apache-2.0
  3. class WriteDirectoryException(Exception):
  4. """
  5. Exception is raised when the user tries to write the content into the directory instead of file
  6. """
  7. pass
  8. class NoFreeClusterException(Exception):
  9. """
  10. Exception is raised when the user tries allocate cluster but no free one is available
  11. """
  12. pass
  13. class LowerCaseException(Exception):
  14. """
  15. Exception is raised when the user tries to write file or directory with lower case
  16. """
  17. pass
  18. class TooLongNameException(Exception):
  19. """
  20. Exception is raised when long name support is not enabled and user tries to write file longer then allowed
  21. """
  22. pass
  23. class WLNotInitialized(Exception):
  24. """
  25. Exception is raised when the user tries to write fatfs not initialized with wear levelling
  26. """
  27. pass
  28. class FatalError(Exception):
  29. pass