mirror of
https://github.com/langgenius/dify.git
synced 2026-09-03 23:47:16 +08:00
22 lines
724 B
Python
22 lines
724 B
Python
"""Framework-neutral errors shared by account application services."""
|
|
|
|
|
|
class AccountApplicationError(Exception):
|
|
"""Base class for failures owned by account application services."""
|
|
|
|
|
|
class AccountNotFoundError(AccountApplicationError):
|
|
"""The admitted account no longer exists."""
|
|
|
|
|
|
class CurrentAccountPasswordIncorrectError(AccountApplicationError):
|
|
"""The supplied current password does not match the account credential."""
|
|
|
|
|
|
class InvalidAccountPasswordError(AccountApplicationError):
|
|
"""The requested password does not satisfy the account password policy."""
|
|
|
|
|
|
class AvatarFileNotFoundError(AccountApplicationError):
|
|
"""The requested avatar file does not exist or is not owned by the account."""
|