On Mon, Aug 10, 2020 at 2:48 AM Lassi Kortela <xxxxxx@lassi.io> wrote:
 
Why do you hate it? Do you have other examples of codes that are
alphanumeric jumbles?

Not at the moment, but my memory is telling me that I *have* seen such things before.  Anyway, SQLSTATEs are (a) part of the SQL standards, although private-use extensions are allowed, and (b) can be in a one-to-many relationship with db-specific numbers and ids.  So I'm okay with them now as a string-valued key specific to DBs.

There is a list at <https://en.wikipedia.org/wiki/SQLSTATE>.
 
'name is vague, it tends to make me wonder whether it's an identifier
kind of name (symbol-with-dashes) or a title kind of name (human
readable string with capitalization). 'id and 'title are unambiguous in
that respect.

Good point.  +1 for 'id.
 
'message is more appropriate for statuses than 'title
(unless the error message is a whole essay that needs its own title).

I would hope not!



John Cowan          http://vrici.lojban.org/~cowan        xxxxxx@ccil.org
Unless it was by accident that I had offended someone, I never apologized.
        --Quentin Crisp