exc.py 997 B

12345678910111213141516171819202122232425262728293031323334
  1. class DSLVersionNotSupportedError(ValueError):
  2. """Raised when the imported DSL version is not supported by the current Dify version."""
  3. class InvalidYAMLFormatError(ValueError):
  4. """Raised when the provided YAML format is invalid."""
  5. class MissingAppDataError(ValueError):
  6. """Raised when the app data is missing in the provided DSL."""
  7. class InvalidAppModeError(ValueError):
  8. """Raised when the app mode is invalid."""
  9. class MissingWorkflowDataError(ValueError):
  10. """Raised when the workflow data is missing in the provided DSL."""
  11. class MissingModelConfigError(ValueError):
  12. """Raised when the model config data is missing in the provided DSL."""
  13. class FileSizeLimitExceededError(ValueError):
  14. """Raised when the file size exceeds the allowed limit."""
  15. class EmptyContentError(ValueError):
  16. """Raised when the content fetched from the URL is empty."""
  17. class ContentDecodingError(ValueError):
  18. """Raised when there is an error decoding the content."""