Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OSLC4Net_SDK/OSLC4Net.Core/Model/OccursExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static Occurs FromString(string value)
}
}

throw new ArgumentException();
throw new ArgumentException($"Invalid string representation of Occurs value: {value}", nameof(value));
}

public static Occurs FromURI(URI uri)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static Representation FromString(string value)
}
}

throw new ArgumentException();
throw new ArgumentException($"Invalid string representation of Representation value: {value}", nameof(value));
}

public static Representation FromURI(URI uri)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public override async Task<InputFormatterResult> ReadRequestBodyAsync(
OslcMediaType.TEXT_TURTLE => RdfFormat.Turtle,
OslcMediaType.APPLICATION_NTRIPLES => RdfFormat.NTriples,
OslcMediaType.APPLICATION_JSON_LD => RdfFormat.JsonLd,
_ => throw new ArgumentOutOfRangeException(nameof(requestedType),
"Unknown RDF format"),
_ => throw new NotSupportedException($"Unknown RDF format: {requestedType}"),
};
using var reader = new StreamReader(context.HttpContext.Request.Body, encoding);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext co
OslcMediaType.TEXT_TURTLE => RdfFormat.Turtle,
OslcMediaType.APPLICATION_NTRIPLES => RdfFormat.NTriples,
OslcMediaType.APPLICATION_JSON_LD => RdfFormat.JsonLd,
_ => throw new ArgumentOutOfRangeException(nameof(requestedType),
"Unknown RDF format"),
_ => throw new NotSupportedException($"Unknown RDF format: {requestedType}"),
},
Graph = graph
};
Expand Down
Loading