Uh oh!
There was an error while loading. Please reload this page.
Implement SnapError - #1833
Conversation
5be8a5a to
e4621d9Comparecbf0102 to
58b1ad9Compare48d181c to
6e1330dCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages:@metamask/rpc-errors@5.1.1 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Mrtenz
commented
Oct 20, 2023
@metamaskbot publish-preview |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@## feat/error-handling #1833 +/- ##
=======================================================
+ Coverage 96.04% 96.11% +0.06%
=======================================================
Files 243 243 Lines 5669 5770 +101 Branches 899 925 +26 =======================================================
+ Hits 5445 5546 +101
Misses 224 224
☔ View full report in Codecov by Sentry. |
This implements the
SnapErrorclass, and wrapping/unwrapping of errors thrown from a Snap.SnapErrors will not cause the Snap to crash, and can be used to respond to JSON-RPC requests for example.Closes#1824.