Use correct exception
Merge pull request #76 from Bladrak/useCorrectException

Use correct exception