From a6e6ab2755cd3b4e1ca2e5cd9f78ea14e7c232ee Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Wed, 28 Dec 2022 13:54:26 +0000 Subject: [PATCH] Add `ErrorCodeOverride` to `reservedErrorMembers` --- .../java/software/amazon/smithy/go/codegen/SymbolVisitor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolVisitor.java b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolVisitor.java index 04d47bc14..bdf4a8a33 100644 --- a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolVisitor.java +++ b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolVisitor.java @@ -122,6 +122,7 @@ final class SymbolVisitor implements SymbolProvider, ShapeVisitor { .put("ErrorFault", "ErrorFault_") .put("Unwrap", "Unwrap_") .put("Error", "Error_") + .put("ErrorCodeOverride", "ErrorCodeOverride_") .build(); errorMemberEscaper = ReservedWordSymbolProvider.builder()