mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 06:32:18 +02:00
lnwire: add godoc comments for lnwire.FailureMessage
This commit is contained in:
@@ -15,7 +15,13 @@ import (
|
||||
// FailureMessage represents the onion failure object identified by its unique
|
||||
// failure code.
|
||||
type FailureMessage interface {
|
||||
// Code returns a failure code describing the exact nature of the
|
||||
// error.
|
||||
Code() FailCode
|
||||
|
||||
// Error returns a human readable string describing the error. With
|
||||
// this method, the FailureMessage interface meets the built-in error
|
||||
// interface.
|
||||
Error() string
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user