Skip to content

Add typed error handling#29

Open
typerandom wants to merge 2 commits intomasterfrom
fix-error-handling
Open

Add typed error handling#29
typerandom wants to merge 2 commits intomasterfrom
fix-error-handling

Conversation

@typerandom
Copy link
Copy Markdown
Contributor

@typerandom typerandom commented Oct 1, 2016

Fixes so that all errors are typed and documented.

How to verify

Read the docs, checkout this branch and test it with the code below:

var nJwt = require('njwt');

try {
    nJwt.create();
} catch (err) {
    if (err instanceof nJwt.SigningKeyRequiredJwtError) {
        return console.log('Signing key required!');
    }
    console.log('Unhandled error!', err);
}

Fixes #22

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 1, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 5904561 on fix-error-handling into 9e177c3 on master.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 1, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 60cb403 on fix-error-handling into 9e177c3 on master.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 1, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 60cb403 on fix-error-handling into 9e177c3 on master.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 14, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling 1fd51b4 on fix-error-handling into 9e177c3 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants