John Lees-Miller
258cc08717
Add a limit on the number of tags, OError.maxTags ( #13 )
...
* Add OError.maxTags
* Tidy up package scripts and add a build script
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
2020-09-17 15:17:44 +01:00
John Lees-Miller
ea2d76de51
Improve tagging for a (maybe) null error ( #12 )
...
* Document a way of handling an error that might be null
* Make typecheck strict
* Test some edge cases
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
2020-09-11 10:05:54 +01:00
John Lees-Miller
497f2a7936
Make tag check stricter and use a map
2020-05-15 11:07:08 +01:00
John Lees-Miller
c44054a31b
Add cast for the fake TaggedError
2020-05-05 09:06:15 +01:00
John Lees-Miller
fc197630be
Avoid capturing stack trace twice
...
Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
2020-05-05 09:02:11 +01:00
John Lees-Miller
f6eb185f84
Update README for v3
2020-04-30 10:29:23 +01:00
John Lees-Miller
09cd72d51c
Rework to favor tagging over wrapping
2020-04-29 21:08:58 +01:00
John Lees-Miller
c46075aaab
Make constructor take only message and info
2020-04-17 15:45:08 +01:00
John Lees-Miller
4b903626b4
Apply linting rules
2020-04-17 09:14:35 +01:00
John Lees-Miller
96ab30883a
Remove ES5 interface
2019-07-08 11:52:59 +01:00
Tim Alby
9afd8e4e5d
change exports
2019-07-05 18:45:43 +02:00
Tim Alby
76b13e7d35
rename to OError
2019-07-05 15:25:22 +02:00
Tim Alby
9c1b48a5e4
remove ErrorWithStatusCode
2019-07-05 15:24:11 +02:00
Tim Alby
7bb8a5bd11
handle custom errors created without info
2019-07-04 10:38:56 +02:00
John Lees-Miller
ed7dc939ac
Add support for errors with ES6 classes
2019-07-01 11:34:15 +01:00
John Lees-Miller
138b339c0f
Tidy up for release
2018-04-23 08:11:08 +01:00
James Allen
a94b34f37f
Initial commit of stand-alone module
2018-03-07 16:42:39 +00:00