use throws as the primary name and exception as the synonym

This commit is contained in:
Jeff Williams 2014-06-17 21:34:40 -07:00
parent be60e811eb
commit 2107d463da

View File

@ -380,17 +380,6 @@ exports.defineTags = function(dictionary) {
}
});
dictionary.defineTag('exception', {
mustHaveValue: true,
canHaveType: true,
onTagged: function(doclet, tag) {
if (!doclet.exceptions) { doclet.exceptions = []; }
doclet.exceptions.push(tag.value);
setDocletTypeToValueType(doclet, tag);
}
})
.synonym('throws');
dictionary.defineTag('exports', {
mustHaveValue: true,
onTagged: function(doclet, tag) {
@ -698,6 +687,17 @@ exports.defineTags = function(dictionary) {
}
});
dictionary.defineTag('throws', {
mustHaveValue: true,
canHaveType: true,
onTagged: function(doclet, tag) {
if (!doclet.exceptions) { doclet.exceptions = []; }
doclet.exceptions.push(tag.value);
setDocletTypeToValueType(doclet, tag);
}
})
.synonym('exception');
dictionary.defineTag('tutorial', {
mustHaveValue: true,
onTagged: function(doclet, tag) {