mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
20 lines
501 B
C
20 lines
501 B
C
#ifndef LIGHTNING_PLUGINS_RENEPAY_ERRORCODES_H
|
|
#define LIGHTNING_PLUGINS_RENEPAY_ERRORCODES_H
|
|
|
|
#include "config.h"
|
|
|
|
/* Common types of failures for low level functions in renepay. */
|
|
enum renepay_errorcode {
|
|
RENEPAY_NOERROR = 0,
|
|
|
|
RENEPAY_AMOUNT_OVERFLOW,
|
|
RENEPAY_CHANNEL_NOT_FOUND,
|
|
RENEPAY_BAD_CHANNEL,
|
|
RENEPAY_BAD_ALLOCATION,
|
|
RENEPAY_PRECONDITION_ERROR,
|
|
RENEPAY_UNEXPECTED,
|
|
};
|
|
|
|
const char *renepay_errorcode_name(enum renepay_errorcode e);
|
|
|
|
#endif /* LIGHTNING_PLUGINS_RENEPAY_ERRORCODES_H */
|