-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SDK error handling #1014
Implement SDK error handling #1014
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1014 +/- ##
==========================================
- Coverage 96.18% 91.61% -4.57%
==========================================
Files 97 55 -42
Lines 3700 1062 -2638
Branches 773 118 -655
==========================================
- Hits 3559 973 -2586
+ Misses 95 58 -37
+ Partials 46 31 -15
Continue to review full report at Codecov.
|
e8c8dd0
to
32b1d47
Compare
32b1d47
to
b7a94fc
Compare
0b4dc3c
to
7b5f7aa
Compare
7b5f7aa
to
663e9bb
Compare
8c165a7
to
2abe85b
Compare
Co-Authored-By: André Vitor de Lima Matos <[email protected]>
1a37dcc
to
c48b97a
Compare
c48b97a
to
102033f
Compare
# Conflicts: # raiden-ts/src/channels/epics.ts # raiden-ts/tests/e2e/raiden.spec.ts
76ce4e4
to
35d6e56
Compare
35d6e56
to
d1d75af
Compare
d1d75af
to
20717ea
Compare
# Conflicts: # raiden-ts/package-lock.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Implements #1000 (🎉)
Introduces a new
RaidenError
class which has an additionalcode
property.Example usage:
In
RaidenError
themessage
would be the error message targeted towards developers, while thecode
would be used display error messages to the user by e.g. hooking it up to i18n.The new error messages in t he
ErrorCodes
enum should have a meaningful prefix, e.g.PFS_...
for path related things orXFER_...
for transfer related things.The
details
prop is meant to be used for additional infos related to the error, e.g. transaction IDs or PFS URLs which couldn't be parsed.