結果 : how to throw custom error message in javascript