add custom parse error handler.

http://qiita.com/ryoppy@github/items/d8555723547db56a6a0d