From 1c618166fcd296b4e95f3a6ea9c415d3dca5ce0a Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Wed, 5 Sep 2018 18:46:28 +0200 Subject: js: documentation cleanup -- --- lang/js/src/Errors.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lang/js/src/Errors.js') diff --git a/lang/js/src/Errors.js b/lang/js/src/Errors.js index 145c3a59..2f66c83d 100644 --- a/lang/js/src/Errors.js +++ b/lang/js/src/Errors.js @@ -120,8 +120,9 @@ export const err_list = { /** * Checks the given error code and returns an {@link GPGME_Error} error object * with some information about meaning and origin - * @param {*} code Error code. Should be in err_list or 'GNUPG_ERROR' - * @param {*} info Error message passed through if code is 'GNUPG_ERROR' + * @param {String} code Error code as defined in {@link err_list}. + * @param {String} info Possible additional error message to pass through. + * Currently used for errors sent as answer by gnupg via a native Message port * @returns {GPGME_Error} */ export function gpgme_error (code = 'GENERIC_ERROR', info){ @@ -144,10 +145,13 @@ export function gpgme_error (code = 'GENERIC_ERROR', info){ /** * An error class with additional info about the origin of the error, as string + * It is created by {@link gpgme_error}, and its' codes are defined in + * {@link err_list}. + * * @property {String} code Short description of origin and type of the error * @property {String} msg Additional info - * @class * @protected + * @class * @extends Error */ class GPGME_Error extends Error{ -- cgit v1.2.3