compat: Derive dummy exception from BaseException

Signed-off-by: Michael Buesch <m@bues.ch>