結果 : how to throw error object in javascript