Overriding the the `load` or the `check` method of the `Filter` or `Simple` classes is a good way to implement error checking. For an example, see [this](https://forum.image.sc/t/rag-thresholding-in-imagepy/34128/6?u=zcs).