Add example for error handling. #15 [ci skip]