Skip to content

Commit

Permalink
feat: Repair OpaqueError (smithy-lang#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz authored and ShubhamChaturvedi7 committed Feb 24, 2024
1 parent af29675 commit d1f5a39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public class OpaqueError : Exception {
public readonly object obj;
public OpaqueError(Exception ex) : base("OpaqueError:", ex) { this.obj = ex; }
public OpaqueError() : base("Unknown Unexpected Error") { }
public OpaqueError(object obj) : base("Opaque obj is not an Exception.") { this.obj = obj;}
public OpaqueError(object obj) : base(obj is Exception ? "OpaqueError:" : "Opaque obj is not an Exception.", obj as Exception) { this.obj = obj;}
}
"""
).namespaced(Token.of(nameResolver.namespaceForService()));
Expand Down

0 comments on commit d1f5a39

Please sign in to comment.