mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-15 03:51:23 +01:00
lnwire: add godoc comments for lnwire.FailureMessage
This commit is contained in:
parent
93c008bb46
commit
a7d846ac40
1 changed files with 6 additions and 0 deletions
|
@ -15,7 +15,13 @@ import (
|
||||||
// FailureMessage represents the onion failure object identified by its unique
|
// FailureMessage represents the onion failure object identified by its unique
|
||||||
// failure code.
|
// failure code.
|
||||||
type FailureMessage interface {
|
type FailureMessage interface {
|
||||||
|
// Code returns a failure code describing the exact nature of the
|
||||||
|
// error.
|
||||||
Code() FailCode
|
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
|
Error() string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue