[blivet:rhel7/master 4/4] Change messages to SanityError objects (#1060255)

Chris Lumens clumens at redhat.com
Fri Feb 7 19:41:26 UTC 2014


> I think the main problem that I saw with that is that if sanityCheck
> changes its mind about what is an error and what is warning you have
> to shuffle the class hierarchy around.

If your class hierarchy isn't especially deep, I think it will be okay.
I was imagining something like this:

StorageError
   SanityException
      SanityError
         LUKSDeviceWithoutKeyError
         ... more stuff here ...
      SanityWarning
         ... more stuff here ...

- Chris


More information about the anaconda-patches mailing list