Skip to content

Commit

Permalink
Merge pull request #632 from SteveDunn/refer-to-correct-exception-in-…
Browse files Browse the repository at this point in the history
…comments

Fix generated code comments referring to default exception type
  • Loading branch information
SteveDunn authored Jun 25, 2024
2 parents e541734 + 84f243d commit fa9e84a
Show file tree
Hide file tree
Showing 36,439 changed files with 181,364 additions and 181,364 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions src/Vogen/GenerateCodeForParse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private static string BuildParseWithFormatProviderMethodForAString(VoWorkItem it
/// <returns>
/// The value created via the <see cref=""From(global::System.String)""/> method.
/// </returns>
/// <exception cref=""ValueObjectValidationException"">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref=""{item.ValidationExceptionFullName}"">Thrown when the value can be parsed, but is not valid.</exception>
{methodDecl}(global::System.String s, global::System.IFormatProvider provider) {{
return From(s);
}}";
Expand Down Expand Up @@ -134,7 +134,7 @@ private static void BuildParseMethod(IMethodSymbol methodSymbol, StringBuilder s
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref=""ValueObjectValidationException"">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref=""{item.ValidationExceptionFullName}"">Thrown when the value can be parsed, but is not valid.</exception>
public {staticOrNot}{item.VoTypeName} Parse({parameters}) {{
var r = {item.UnderlyingTypeFullName}.Parse({parameterNames});
return From(r);
Expand Down
2 changes: 1 addition & 1 deletion src/Vogen/Generators/ClassGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public string BuildClass(VoWorkItem item, TypeDeclarationSyntax tds)
private readonly {itemUnderlyingType} _value;
/// <summary>
/// Gets the underlying <see cref=""{itemUnderlyingType}"" /> value if set, otherwise a <see cref=""{nameof(ValueObjectValidationException)}"" /> is thrown.
/// Gets the underlying <see cref=""{itemUnderlyingType}"" /> value if set, otherwise a <see cref=""{item.ValidationExceptionFullName}"" /> is thrown.
/// </summary>
public {itemUnderlyingType} Value
{{
Expand Down
2 changes: 1 addition & 1 deletion src/Vogen/Generators/RecordClassGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public string BuildClass(VoWorkItem item, TypeDeclarationSyntax tds)
private readonly {itemUnderlyingType} _value;
/// <summary>
/// Gets the underlying <see cref=""{itemUnderlyingType}"" /> value if set, otherwise a <see cref=""{nameof(ValueObjectValidationException)}"" /> is thrown.
/// Gets the underlying <see cref=""{itemUnderlyingType}"" /> value if set, otherwise a <see cref=""{item.ValidationExceptionFullName}"" /> is thrown.
/// </summary>
public {itemUnderlyingType} Value
{{
Expand Down
2 changes: 1 addition & 1 deletion src/Vogen/Generators/RecordStructGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public string BuildClass(VoWorkItem item, TypeDeclarationSyntax tds)
private readonly {itemUnderlyingType} _value;
/// <summary>
/// Gets the underlying <see cref=""{itemUnderlyingType}"" /> value if set, otherwise a <see cref=""{nameof(ValueObjectValidationException)}"" /> is thrown.
/// Gets the underlying <see cref=""{itemUnderlyingType}"" /> value if set, otherwise a <see cref=""{item.ValidationExceptionFullName}"" /> is thrown.
/// </summary>
public readonly {itemUnderlyingType} Value
{{
Expand Down
2 changes: 1 addition & 1 deletion src/Vogen/Generators/StructGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public string BuildClass(VoWorkItem item, TypeDeclarationSyntax tds)
private readonly {itemUnderlyingType} _value;
/// <summary>
/// Gets the underlying <see cref=""{itemUnderlyingType}"" /> value if set, otherwise a <see cref=""{nameof(ValueObjectValidationException)}"" /> is thrown.
/// Gets the underlying <see cref=""{itemUnderlyingType}"" /> value if set, otherwise a <see cref=""{item.ValidationExceptionFullName}"" /> is thrown.
/// </summary>
public readonly {itemUnderlyingType} Value
{{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ using Vogen;
private readonly System.Int32 _value;

/// <summary>
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="global::Vogen.ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Int32 Value
{
Expand Down Expand Up @@ -326,7 +326,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(global::System.ReadOnlySpan<char> s, global::System.Globalization.NumberStyles style, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, style, provider);
return From(r);
Expand All @@ -338,7 +338,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s) {
var r = System.Int32.Parse(s);
return From(r);
Expand All @@ -350,7 +350,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.Globalization.NumberStyles style) {
var r = System.Int32.Parse(s, style);
return From(r);
Expand All @@ -362,7 +362,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.Globalization.NumberStyles style, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, style, provider);
return From(r);
Expand All @@ -374,7 +374,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, provider);
return From(r);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ using Vogen;
private readonly System.Guid _value;

/// <summary>
/// Gets the underlying <see cref="System.Guid" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// Gets the underlying <see cref="System.Guid" /> value if set, otherwise a <see cref="global::Vogen.ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Guid Value
{
Expand Down Expand Up @@ -282,7 +282,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Guid value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(global::System.ReadOnlySpan<char> input) {
var r = System.Guid.Parse(input);
return From(r);
Expand All @@ -294,7 +294,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Guid value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string input) {
var r = System.Guid.Parse(input);
return From(r);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ using Vogen;
private readonly System.Int32 _value;

/// <summary>
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="global::Vogen.ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Int32 Value
{
Expand Down Expand Up @@ -325,7 +325,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(global::System.ReadOnlySpan<char> s, global::System.Globalization.NumberStyles style, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, style, provider);
return From(r);
Expand All @@ -337,7 +337,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s) {
var r = System.Int32.Parse(s);
return From(r);
Expand All @@ -349,7 +349,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.Globalization.NumberStyles style) {
var r = System.Int32.Parse(s, style);
return From(r);
Expand All @@ -361,7 +361,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.Globalization.NumberStyles style, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, style, provider);
return From(r);
Expand All @@ -373,7 +373,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, provider);
return From(r);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ using Vogen;
private readonly System.Int32 _value;

/// <summary>
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="global::Vogen.ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Int32 Value
{
Expand Down Expand Up @@ -282,7 +282,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s) {
var r = System.Int32.Parse(s);
return From(r);
Expand All @@ -294,7 +294,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.Globalization.NumberStyles style) {
var r = System.Int32.Parse(s, style);
return From(r);
Expand All @@ -306,7 +306,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.Globalization.NumberStyles style, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, style, provider);
return From(r);
Expand All @@ -318,7 +318,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, provider);
return From(r);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ using Vogen;
private readonly System.Guid _value;

/// <summary>
/// Gets the underlying <see cref="System.Guid" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// Gets the underlying <see cref="System.Guid" /> value if set, otherwise a <see cref="global::Vogen.ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Guid Value
{
Expand Down Expand Up @@ -260,7 +260,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Guid value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string input) {
var r = System.Guid.Parse(input);
return From(r);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ using Vogen;
private readonly System.Int32 _value;

/// <summary>
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="ValueObjectValidationException" /> is thrown.
/// Gets the underlying <see cref="System.Int32" /> value if set, otherwise a <see cref="global::Vogen.ValueObjectValidationException" /> is thrown.
/// </summary>
public readonly System.Int32 Value
{
Expand Down Expand Up @@ -281,7 +281,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s) {
var r = System.Int32.Parse(s);
return From(r);
Expand All @@ -293,7 +293,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.Globalization.NumberStyles style) {
var r = System.Int32.Parse(s, style);
return From(r);
Expand All @@ -305,7 +305,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.Globalization.NumberStyles style, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, style, provider);
return From(r);
Expand All @@ -317,7 +317,7 @@ public static ValueObjectOrError<Vo> TryFrom(System.Int32 value)
/// <returns>
/// The value created by calling the Parse method on the primitive.
/// </returns>
/// <exception cref="ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
/// <exception cref="global::Vogen.ValueObjectValidationException">Thrown when the value can be parsed, but is not valid.</exception>
public static Vo Parse(string s, global::System.IFormatProvider provider) {
var r = System.Int32.Parse(s, provider);
return From(r);
Expand Down
Loading

0 comments on commit fa9e84a

Please sign in to comment.