I think you should raise a subclass of `PyXsError` here.