Added more specific exceptions to increase control outside module.
Merge pull request #31 from codemonkey2841/master

Added more specific exceptions to increase control outside module.