also is it necessary to subclass `PandasError` here?