added LogicException
Merge pull request #45 from Shaked/patch-1

added LogicException