Use custom exception instead of Exception

It makes pattern matching friendly for try-catch statement.
Merge pull request #15 from Kuniwak/custom-exception

Use custom exception instead of just Exception