結果 : how to throw an error object in javascript