lnwire: add godoc comments for lnwire.FailureMessage

This commit is contained in:
Olaoluwa Osuntokun 2017-10-10 19:37:49 -07:00
parent 93c008bb46
commit a7d846ac40
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 6 additions and 0 deletions

View File

@ -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
}