JsDoc Toolkitを使う!
@throws
最終更新:
aias-jsdoctoolkit
-
view
トップページ > ドックコメントの書き方 > タグリファレンス >
@throws
@throwsタグには、関数(やメソッド)が投げる可能性のある例外について記述します。
別名
@exception
構文
@throws {exceptionType} exceptionDescription
- exceptionType -- 省略可:関数が投げる例外のタイプ
- exceptionDescription -- 省略可:例外の説明
例
function processFile(path) {
}
/**
* @throws {OutOfMemeory} If the file is too big.
*/