It has no structured stack trace
Oh, but then again, neither does your library, right?
In any case, I wasn't arguing any of these:
Instead, my argument is more like this:
code
was just an example of the previous point. Sure, most people will want error codes, but not all. And more importantly, a lot of people will not want a generic container like your details
and/or the errors
collection. Also, regarding code
, the thing is it's very easy to add the property and requires little effort, while there are other, much more important concerns about error codes.