support options.errorHanlder, default throw set error

fixed #34
Release 1.3.0