diff options
author | Maximilian Krambach <[email protected]> | 2018-09-05 16:46:28 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-09-05 16:46:28 +0000 |
commit | 1c618166fcd296b4e95f3a6ea9c415d3dca5ce0a (patch) | |
tree | 4ed33a570c4b999c656e66bb98c6ad43c9673223 /lang/js/src/Errors.js | |
parent | estreams symbols for python bindings (diff) | |
download | gpgme-1c618166fcd296b4e95f3a6ea9c415d3dca5ce0a.tar.gz gpgme-1c618166fcd296b4e95f3a6ea9c415d3dca5ce0a.zip |
js: documentation cleanup
--
Diffstat (limited to 'lang/js/src/Errors.js')
-rw-r--r-- | lang/js/src/Errors.js | 10 |
1 files changed, 7 insertions, 3 deletions
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{ |