Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ErrorCodeOverride to error structs #401

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Commits on Jan 4, 2023

  1. Add ErrorCodeOverride to error structures

    Adding the `ErrorCodeOverride` field allows protocols to
    override the default `ErrorCode()` implementation (which
    is the name of the error) with a custom string.
    
    If a smithy model uses the `ErrorCodeOverride` field in
    an error structure, it will be renamed to
    `ErrorCodeOverride_`.
    
    Also, the writer for the switch-statement default block
    is now pluggable, which means the default block can be
    overwritten with a custom writer.
    eddy-aws authored and Steven Yuan committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    21eaa6c View commit details
    Browse the repository at this point in the history