modflowpy / flopy

A Python package to create, run, and post-process MODFLOW-based models.
https://flopy.readthedocs.io
Other
506 stars 306 forks source link

refactor(exceptions): raise NotImplementedError where appropriate #2213

Closed mwtoews closed 2 months ago

mwtoews commented 2 months ago

This PR raises NotImplementedError where appropriate, for example abstract methods. Several instances where a comment or message printing "not implemented" are changed to raise this exception instead.

A few other exceptions from flopy/mbase.py are reclassified to raise TypeError where some of the expected types are missing.