Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz committed Nov 4, 2024
1 parent 85ed378 commit 1294871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,9 @@ public TokenTree generateModeledErrorDataType() {
Token.of("// A better Opaque, with a visible string representation."),
Token.of("| OpaqueWithText(obj: object, objMessage : string)"),
// Helper error for use with `extern`
Token.of("type OpaqueError = e: Error | e.Opaque? witness *")
Token.of(
"type OpaqueError = e: Error | e.Opaque? || e.OpaqueWithText? witness *"
)
)
.lineSeparated();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import software.amazon.polymorph.smithyjava.nameresolver.AwsSdkDafnyV2;
import software.amazon.polymorph.smithyjava.nameresolver.AwsSdkNativeV2;
import software.amazon.polymorph.smithyjava.nameresolver.Dafny;
import software.amazon.polymorph.smithyjava.unmodeled.OpaqueError;
import software.amazon.polymorph.smithyjava.unmodeled.OpaqueWithTextError;
import software.amazon.polymorph.traits.LocalServiceTrait;
import software.amazon.polymorph.utils.AwsSdkNameResolverHelpers;
Expand Down

0 comments on commit 1294871

Please sign in to comment.