Skip to content

Commit

Permalink
Merge pull request #218 from joemphilips/fix_20220801
Browse files Browse the repository at this point in the history
nit: refactor CLightningRPCException
  • Loading branch information
joemphilips committed Aug 1, 2022
2 parents 5cdbdf8 + c94cb34 commit 0b8df06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DotNetLightning.ClnRpc/Client.fs
Expand Up @@ -126,7 +126,9 @@ type CLightningRPCError =
Msg: string
}

exception CLightningRPCException of CLightningRPCError
type CLightningRPCException(e: CLightningRPCError) =
inherit Exception($"code: {e.Code}. Msg: {e.Msg}")
member val Code = e.Code

type JsonLibraryType =
| SystemTextJson = 0
Expand Down

0 comments on commit 0b8df06

Please sign in to comment.