<s> class DeployError ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __str__ ( self ) : <EOL> doc = self . __doc__ . strip ( ) <EOL> return '<STR_LIT>' . join ( [ doc ] + [ str ( a ) for a in self . args ] ) <EOL> class UnableToResolveError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> class ClusterExistsError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> class ConfigError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> class NeedHostError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> class NeedMonError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> class NeedDiskError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> class UnsupportedPlatform ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , distro , codename , release ) : <EOL> self . distro = distro <EOL> self . codename = codename <EOL> self . release = release <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' . format ( <EOL> doc = self . __doc__ . strip ( ) , <EOL> distro = self . distro , <EOL> codename = self . codename , <EOL> release = self . release , <EOL> ) <EOL> class ExecutableNotFound ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , executable , host ) : <EOL> self . executable = executable <EOL> self . host = host <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" . format ( <EOL> doc = self . __doc__ . strip ( ) , <EOL> executable = self . executable , <EOL> host = self . host , <EOL> ) <EOL> class MissingPackageError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , message ) : <EOL> self . message = message <EOL> def __str__ ( self ) : <EOL> return self . message <EOL> class GenericError ( DeployError ) : <EOL> def __init__ ( self , message ) : <EOL> self . message = message <EOL> def __str__ ( self ) : <EOL> return self . message <EOL> class ClusterNameError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , message ) : <EOL> self . message = message <EOL> def __str__ ( self ) : <EOL> return self . message <EOL> class KeyNotFoundError ( DeployError ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , keyring , hosts ) : <EOL> self . keyring = keyring <EOL> self . hosts = hosts <EOL> def __str__ ( self ) : <EOL> return '<STR_LIT>' . format ( <EOL> doc = self . __doc__ . strip ( ) , <EOL> keys = '<STR_LIT:U+002CU+0020>' . join ( <EOL> [ self . keyring . format ( hostname = host ) + <EOL> "<STR_LIT>" . format ( hostname = host ) <EOL> for host in self . hosts ] <EOL> ) <EOL> ) </s>
