-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: exposing ErrCode class (#158)
Expose ErrCode class and add rpc_pb to exports. Useful for client who wants to implements error checks on their dApps, eg: ``` import { ErrCode } from "@gnolang/gnonative"; if (err.errCode() === ErrCode.ErrDecryptionFailed) { setError("Wrong password, please try again."); } ``` --------- Signed-off-by: Iuri Pereira <[email protected]> Signed-off-by: D4ryl00 <[email protected]> Co-authored-by: D4ryl00 <[email protected]>
- Loading branch information
Showing
4 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,4 +86,4 @@ class GRPCError extends Error { | |
} | ||
} | ||
|
||
export { GRPCError }; | ||
export { GRPCError, ErrCode }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters