Remix.run Logo
fuzzy2 2 days ago

I mean, at least on modern C#, it could be as simple as

    public class UserIdInvalidException(Exception innerException) : Exception("Invalid User ID", innerException);
Even easier than most data objects you’d have to define anyway. And then, Exceptions are part of the contract. I’d rather not have an LLM write that up, but that’s just personal preference.