Avoid code smell warnings by adding LogicExceptions

"Code smell" may sound harsh. I'm just quoting the term. ;-)

I'm aware this doesn't change anything. But since PHPStorm and other
static code ananlyis tools are complaining about "code smell" this
hopefully helps making the code more maintainable.
Function should not hide throw keyword
Merge pull request #36 from wmde/code-smell

Avoid code smell warnings by adding LogicExceptions