JavaScriptでの例外をスローする

概要

jsで例外処理をスローする場合には、throwを使用する。

throw new Error("failed to start application")