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

Signed-off-by: greenTara <taraathan@gmail.com>
Merge pull request #14 from greenTara/master

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