Source: tags/throws.js

/**
 * @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) {}
THIS IS A DEMO: All content was generated with examples taken from the JSDoc page.