Add support for exceptions
Merge pull request #12 from k-nut/exception

Add support for exceptions