Add APIError enum
authorYuntai Kyong <yuntai.kyong@gmail.com>
Fri, 17 Aug 2018 03:46:17 +0000 (12:46 +0900)
committerMatt Corallo <git@bluematt.me>
Fri, 17 Aug 2018 17:09:30 +0000 (13:09 -0400)
commit4553369d2049b2995c664ef7690318a45031788c
tree1151f2d800cd9cc8ee415c73f03565eee381bca9
parent03c6f84aa82e04c20692f01303bb9eaf6fde4411
Add APIError enum

`APIMisuse` when paramters passed from the client is invalid
`FeeRateTooHigh` when a channel cannot be opened due to high feerate
src/util/errors.rs [new file with mode: 0644]
src/util/mod.rs