error_services.py 729 B

123456789101112131415161718192021222324
  1. from fate_flow.errors import FateFlowError
  2. __all__ = ['ServicesError', 'ServiceNotSupported', 'ZooKeeperNotConfigured',
  3. 'MissingZooKeeperUsernameOrPassword', 'ZooKeeperBackendError']
  4. class ServicesError(FateFlowError):
  5. message = 'Unknown services error'
  6. class ServiceNotSupported(ServicesError):
  7. message = 'The service {service_name} is not supported'
  8. class ZooKeeperNotConfigured(ServicesError):
  9. message = 'ZooKeeper has not been configured'
  10. class MissingZooKeeperUsernameOrPassword(FateFlowError):
  11. message = 'Using ACL for ZooKeeper is enabled but username or password is not configured'
  12. class ZooKeeperBackendError(ServicesError):
  13. message = 'ZooKeeper backend error: {error_message}'