Added type hints and modernize docs for djblets.webapi.errors.
Review Request #13258 — Created Sept. 5, 2023 and submitted
djblets.webapi.errorsto include type hints and modern
documentation. This class is ancient, and was not up to our current
This is in preparation for upcoming work on error support.
There is one small feature addition in that
with_message()will now do the right thing if called on a
subclass. While not a pattern we currently explicitly support, this is
more correct and helps future-proof the class.
Unit tests pass.