Throw exceptions instead of redirection for errors
Merge pull request #19 from jippi/exceptions

Throw exceptions instead of redirection when record not found