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