Skip to content

Commit c5af9b5

Browse files
committed
f - docuemnt error types
1 parent 8a01ac6 commit c5af9b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lightning/src/offers/offer.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -415,20 +415,20 @@ pub enum ParseError {
415415
InvalidSemantics(SemanticError),
416416
}
417417

418+
/// Error when interpreting a TLV stream as a specific type.
418419
#[derive(Debug, PartialEq)]
419-
///
420420
pub enum SemanticError {
421-
///
421+
/// The provided block hash does not correspond to a supported chain.
422422
UnsupportedChain,
423-
///
423+
/// A currency was provided without an amount.
424424
UnexpectedCurrency,
425-
///
425+
/// A required description was not provided.
426426
MissingDescription,
427-
///
427+
/// Either a node id or a blinded path was not provided.
428428
MissingDestination,
429-
///
429+
/// An empty set of blinded paths was provided.
430430
MissingPaths,
431-
///
431+
/// A quantity representing an empty range or that was outside of a valid range was provided.
432432
InvalidQuantity,
433433
}
434434

0 commit comments

Comments
 (0)