@@ -0,0 +1,1508 @@
+%0Aclass FilesNotCompatible(Exception):%0A    file_types = 'files'%0A%0A    def __init__(self, file_path1, file_path2, message=None):%0A        msg = '%7B%7D %7B%7D and %7B%7D are not compatible.'.format(self.file_types.capitalize(),%0A                                                        file_path1,%0A                                                        file_path2)%0A        if message is not None:%0A            msg += '. ' + message%0A%0A        Exception.__init__(self, msg)%0A%0A%0Aclass NiftiFilesNotCompatible(FilesNotCompatible):%0A    file_types = 'nifti files'%0A%0A%0Aclass PathNotFoundError(Exception):%0A    path_type = 'path'%0A%0A    def __init__(self, file_path, message=None):%0A%0A        msg = 'Could not find %7B0%7D %7B1%7D.'.format(self.path_type,%0A                                               file_path)%0A        if message is not None:%0A            msg += '. ' + message%0A%0A        Exception.__init__(self, msg)%0A%0A%0Aclass PathAlreadyExists(Exception):%0A    path_type = 'path'%0A%0A    def __init__(self, file_path, message=None):%0A%0A        msg = '%7B0%7D %7B1%7D already exists %7B1%7D.'.format(self.path_type.capitalize(),%0A                                                   file_path)%0A        if message is not None:%0A            msg += '. ' + message%0A%0A        Exception.__init__(self, msg)%0A%0A%0Aclass FileNotFound(PathNotFoundError):%0A    path_type = 'file'%0A%0A%0Aclass FolderNotFound(PathNotFoundError):%0A    path_type = 'folder'%0A%0A%0Aclass FileAlreadyExists(PathAlreadyExists):%0A    path_type = 'file'%0A%0A%0Aclass FolderAlreadyExists(PathAlreadyExists):%0A    path_type = 'folder'%0A

Add exceptions.py