Skip to content

Commit

Permalink
feat: Repair OpaqueError
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz committed Oct 17, 2023
1 parent 43ab6c4 commit f251489
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 f251489

Please sign in to comment.