725c559 Stop using RuntimeError

Authored and Committed by zbyszek 2 years ago
    Stop using RuntimeError
    
    RuntimeError is "unspecified error", and generally should be used only when we
    don't know what happened and don't have a better error class to use. For the
    cases where standard errors match, let's just use FileNotFoundError,
    FileExistsError, and shutil.SpecialFileError. An additional class
    FileIsModifiedError is defined, because none of the commonly used types match.
    
    Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
    
        
file modified
+5 -0
file modified
+4 -3