<s> class Driver ( object ) : <EOL> def get_config ( self ) : <EOL> return { } <EOL> class SyncDriverError ( Exception ) : <EOL> def __init__ ( self , message , errorno ) : <EOL> Exception . __init__ ( self , message ) <EOL> self . errorno = errorno <EOL> def __str__ ( self ) : <EOL> return self . message <EOL> class SyncDriver ( Driver ) : <EOL> def sync ( self , args ) : <EOL> raise NotImplementedError <EOL> class LockDriverError ( Exception ) : <EOL> def __init__ ( self , message , errorno ) : <EOL> Exception . __init__ ( self , message ) <EOL> self . errorno = errorno <EOL> def __str__ ( self ) : <EOL> return self . message <EOL> class LockDriver ( Driver ) : <EOL> def check_lock ( self , args ) : <EOL> raise NotImplementedError <EOL> def add_lock ( self , args ) : <EOL> raise NotImplementedError <EOL> def remove_lock ( self , args ) : <EOL> raise NotImplementedError <EOL> class ServiceDriverError ( Exception ) : <EOL> def __init__ ( self , message , errorno ) : <EOL> Exception . __init__ ( self , message ) <EOL> self . errorno = errorno <EOL> def __str__ ( self ) : <EOL> return self . message <EOL> class ServiceDriver ( Driver ) : <EOL> def stop ( self , args ) : <EOL> raise NotImplementedError <EOL> def start ( self , args ) : <EOL> raise NotImplementedError <EOL> def restart ( self , args ) : <EOL> raise NotImplementedError <EOL> def reload ( self , args ) : <EOL> raise NotImplementedError <EOL> class ReportDriverError ( Exception ) : <EOL> def __init__ ( self , message , errorno ) : <EOL> Exception . __init__ ( self , message ) <EOL> self . errorno = errorno <EOL> def __str__ ( self ) : <EOL> return self . message <EOL> class ReportDriver ( Driver ) : <EOL> def report ( self , args ) : <EOL> raise NotImplementedError </s>
