Corrected raised exception class name
Removed unnecessary import from example
Merge pull request #1793 from dhackner/master

'Reject' semipredicate example corrections