X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fenums%2FCreationError.ts;h=ac012800897c050e088b4ad3a4e20ab6be2a8edb;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=8570e7ca26e145e982734f01fb98a64cf7d34c99;hpb=b6cc0960eaee5a5bbc7fde79a56152d6dcd649d8;p=ldk-java diff --git a/ts/enums/CreationError.ts b/ts/enums/CreationError.ts index 8570e7ca..ac012800 100644 --- a/ts/enums/CreationError.ts +++ b/ts/enums/CreationError.ts @@ -1,8 +1,24 @@ export enum CreationError { - LDKCreationError_DescriptionTooLong, - LDKCreationError_RouteTooLong, - LDKCreationError_TimestampOutOfBounds, - LDKCreationError_ExpiryTimeOutOfBounds, + /** + * The supplied description string was longer than 639 __bytes__ (see [`Description::new(...)`](./struct.Description.html#method.new)) + */ +LDKCreationError_DescriptionTooLong, + /** + * The specified route has too many hops and can't be encoded + */ +LDKCreationError_RouteTooLong, + /** + * The unix timestamp of the supplied date is <0 or can't be represented as `SystemTime` + */ +LDKCreationError_TimestampOutOfBounds, + /** + * The supplied expiry time could cause an overflow if added to a `PositiveTimestamp` + */ +LDKCreationError_ExpiryTimeOutOfBounds, + /** + * The supplied millisatoshi amount was greater than the total bitcoin supply. + */ +LDKCreationError_InvalidAmount, }