def make_libvirtError(error_class, msg, error_code=None, error_domain=None, error_message=None, error_level=None, str1=None, str2=None, str3=None, int1=None, int2=None):
 exc = error_class(msg)
 exc.err = (error_code, error_domain, error_message, error_level, str1, str2, str3, int1, int2)
 return exc

def make_libvirtError ( error_class , msg , error_code = None , error_domain = None , error_message = None , error_level = None , str1 = None , str2 = None , str3 = None , int1 = None , int2 = None ) : exc = error_class ( msg ) exc . err = ( error_code , error_domain , error_message , error_level , str1 , str2 , str3 , int1 , int2 ) return exc
convenience function for creating libvirterror exceptions which allow you to specify arguments in constructor without having to manipulate the err tuple directly .