IPA error classes should all inherit from RESTError class
Bug #1410372 reported by
Ruby Loo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Low
|
Michael Turek |
Bug Description
errors.RESTError sez 'Base class for errors generated in ironic-
These errors currently inherit from Exception:
- ExtensionError
- UnknownNodeError
- HardwareManager
Should they inherit from RESTError, and if not, maybe that can be made more explicit somehow.
Changed in ironic: | |
assignee: | nobody → Michael Turek (mjturek) |
Changed in ironic: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in ironic: | |
milestone: | kilo-2 → 2015.1.0 |
To post a comment you must log in.
AIUI, RESTErrors are ones that are intended to be serialized and shipped back to Ironic. That can only happen after lookup. So I sorta mentally categorized them as "pre-lookup (meaning we don't know what Ironic node we are)" and "post-lookup" (meaning we know what Ironic node we are and are actively heartbeating).
But according to Jim, and this makes sense to me too, all the errors could be made RESTErrors and work just fine. So we should do that.