changed filter to throw a more specialized exception, like in the slides

There is a discrepancy between the kind of error thrown in the slides versus in the code. A potential source of confusion ...


Signed-off-by: greenTara <taraathan@gmail.com>