Remove all image thrown exceptions.

This commit is contained in:
2021-09-21 04:55:28 +01:00
parent f0c3653158
commit 42597b89cf
49 changed files with 934 additions and 395 deletions

View File

@@ -121,7 +121,7 @@ namespace Aaru.DiscImages
lineNumber++;
line = _tocStream.ReadLine();
matchDiskType = regexDiskType.Match(line ?? throw new InvalidOperationException());
matchDiskType = regexDiskType.Match(line ?? "");
matchComment = regexComment.Match(line);
// Skip comments at start of file
@@ -149,7 +149,7 @@ namespace Aaru.DiscImages
lineNumber++;
line = _tocStream.ReadLine();
matchComment = regexComment.Match(line ?? throw new InvalidOperationException());
matchComment = regexComment.Match(line ?? "");
matchDiskType = regexDiskType.Match(line);
Match matchMcn = regexMcn.Match(line);
Match matchTrack = regexTrack.Match(line);
@@ -1532,7 +1532,7 @@ namespace Aaru.DiscImages
if(session == 1)
return Tracks;
throw new ImageNotSupportedException("Session does not exist in disc image");
return null;
}
}
}