Change superclass of named exception type