8 instantiations of FileFormatException
NuGet.CommandLine.XPlat (1)
Commands\Why\DependencyGraphFinder.cs (1)
44throw new FileFormatException(Strings.WhyCommand_Error_InconsistentAssetsFile);
NuGet.ProjectModel (7)
FileFormatException.cs (7)
69var ex = new FileFormatException(message, exception); 83var ex = new FileFormatException(message, exception); 95var ex = new FileFormatException(message, exception); 104var ex = new FileFormatException(message); 111var ex = new FileFormatException(message); 125return new FileFormatException(message, exception) 132return new FileFormatException(message)
37 references to FileFormatException
dotnet (1)
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (1)
259catch (FileFormatException)
NuGet.ProjectModel (36)
DependencyGraphSpec.cs (1)
284throw FileFormatException.Create(ex, path);
FileFormatException.cs (16)
27private FileFormatException WithFilePath(string path) 34private FileFormatException WithLineInfo(JsonReaderException exception) 42private FileFormatException WithLineInfo(int line, int column) 50private FileFormatException WithLineInfo(IJsonLineInfo lineInfo) 58public static FileFormatException Create(Exception exception, JToken value, string path) 69var ex = new FileFormatException(message, exception); 74internal static FileFormatException Create(Exception exception, int line, int column, string path) 83var ex = new FileFormatException(message, exception); 88internal static FileFormatException Create(Exception exception, string path) 95var ex = new FileFormatException(message, exception); 100public static FileFormatException Create(string message, JToken value, string path) 104var ex = new FileFormatException(message); 109internal static FileFormatException Create(string message, int line, int column, string path) 111var ex = new FileFormatException(message); 116internal static FileFormatException Create(JsonReaderException exception, string path) 130internal static FileFormatException Create(string message, string path)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (19)
153throw FileFormatException.Create(ex, version, packageSpec.FilePath); 192throw FileFormatException.Create( 239throw FileFormatException.Create( 247throw FileFormatException.Create( 323throw FileFormatException.Create("Unable to resolve dependency ''.", packageSpecPath); 409throw FileFormatException.Create(ex, packageSpecPath); 438throw FileFormatException.Create( 449throw FileFormatException.Create( 502throw FileFormatException.Create("Unable to resolve central version ''.", filePath); 509throw FileFormatException.Create("The version cannot be null or empty.", filePath); 530throw FileFormatException.Create("Unable to resolve package to prune ''.", filePath); 537throw FileFormatException.Create("The version cannot be null or empty.", filePath); 618throw FileFormatException.Create( 631throw FileFormatException.Create( 653throw FileFormatException.Create( 674throw FileFormatException.Create( 715throw FileFormatException.Create(ex, packageSpec.FilePath); 733throw FileFormatException.Create( 1297throw FileFormatException.Create(