"""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."""