Files
dify/api/services/errors/base.py

12 lines
380 B
Python

class BaseServiceError(ValueError):
def __init__(self, description: str = ""):
self.description = description
class NoPermissionError(Exception):
"""The actor is not permitted to perform the requested operation."""
class PersistenceCommitOutcomeUnknownError(RuntimeError):
"""A persistence commit may have completed before its acknowledgement was lost."""