Added external exception handling in Java implementation
Merge pull request #5 from TsukasaUjiie/master

Added external exception handling in Java implementation