[RFC] Add "severity" to the error structure
Bug #1761475 reported by
Dmitry Tantsur
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-sig |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I suggest adding optional severity to each error in http://
I cannot decide if we should use numeric constants or strings. Numeric constants can be sorted, strings are more user-friendly.
TBD:
1. type of severity
2. allowed values
3. the default
description: | updated |
Changed in openstack-api-wg: | |
status: | New → Won't Fix |
To post a comment you must log in.
I'm not super inclined to do this. It's increasing the burden on the coder (when they add an error they need to figure out the right code and the right severity) and trying to put information in the error message that is potentially better kept in documentation. That is, once the code exists it is possible to look things up by the code and get all sorts of information because it is a (somewhat) unique identifier.
Also, severity is fairly subjective and context dependent.