Skip to content

Conversation

@muhammad-othman
Copy link
Member

Description

This change resolves a naming conflict in exception classes where the ErrorType property could hide the inherited ErrorType member from the base AmazonServiceException class.
Also removed previous customization approach at AccountService in favor of the generator-level fix, which caused the private property name to change but the pubic properties stayed that same.

Motivation and Context

DOTNET-8305

Testing

  • Ran the generator and validated that only the AccountService was affect by this change.
  • DRY_RUN-3f60b43c-dedc-49b2-8e2d-1afc309f4889

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

@muhammad-othman muhammad-othman changed the title Rename ErrorType exception properties to avoid hiding inherited member [V4] Rename ErrorType exception properties to avoid hiding inherited member Oct 30, 2025
/// A string containing the overridden property name if a special case applies,
/// or null if the default property name should be used.
/// </returns>
private string GetPropertyNameOverride()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment as V3 on the name of the method

Copy link
Contributor

@peterrsongg peterrsongg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

discussed in other pr

@muhammad-othman muhammad-othman force-pushed the muhamoth/DOTNET-8305-ErrorType-property-in-exception-shapes-are-failing branch from b9568ad to 2fe646a Compare November 3, 2025 17:01
@dscpinheiro dscpinheiro merged commit ca2130c into development Nov 3, 2025
3 checks passed
@dscpinheiro dscpinheiro deleted the muhamoth/DOTNET-8305-ErrorType-property-in-exception-shapes-are-failing branch November 3, 2025 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants