@exception
@throws free-form description @throws {<type>} @throws {<type>} free-form description The @throws tag allows you to document an error that a function might throw. You can include the @throws tag more than once in a single JSDoc comment.
/**
* @throws {InvalidArgumentException}
*/
function foo(x) {}
/**
* @throws Will throw an error if the argument is null.
*/
function bar(x) {}
/**
* @throws {DivideByZero} Argument x must be non-zero.
*/
function baz(x) {}
© 2011–2017 the contributors to the JSDoc 3 documentation project
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://usejsdoc.org/tags-throws.html