github.com/decred/dcrlnd@v0.7.6/watchtower/wtclient/errors.go (about)

     1  package wtclient
     2  
     3  import "errors"
     4  
     5  var (
     6  	// ErrClientExiting signals that the watchtower client is shutting down.
     7  	ErrClientExiting = errors.New("watchtower client shutting down")
     8  
     9  	// ErrTowerCandidatesExhausted signals that a TowerCandidateIterator has
    10  	// cycled through all available candidates.
    11  	ErrTowerCandidatesExhausted = errors.New("exhausted all tower " +
    12  		"candidates")
    13  
    14  	// ErrPermanentTowerFailure signals that the tower has reported that it
    15  	// has permanently failed or the client believes this has happened based
    16  	// on the tower's behavior.
    17  	ErrPermanentTowerFailure = errors.New("permanent tower failure")
    18  
    19  	// ErrNegotiatorExiting signals that the SessionNegotiator is shutting
    20  	// down.
    21  	ErrNegotiatorExiting = errors.New("negotiator exiting")
    22  
    23  	// ErrNoTowerAddrs signals that the client could not be created because
    24  	// we have no addresses with which we can reach a tower.
    25  	ErrNoTowerAddrs = errors.New("no tower addresses")
    26  
    27  	// ErrFailedNegotiation signals that the session negotiator could not
    28  	// acquire a new session as requested.
    29  	ErrFailedNegotiation = errors.New("session negotiation unsuccessful")
    30  
    31  	// ErrUnregisteredChannel signals that the client was unable to backup a
    32  	// revoked state because the channel had not been previously registered
    33  	// with the client.
    34  	ErrUnregisteredChannel = errors.New("channel is not registered")
    35  )