errors

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrAgentHasNoReferenceToPeer

type ErrAgentHasNoReferenceToPeer struct {
	Agent          transport.Agent
	PeerIdentifier transport.PeerIdentifier
}

ErrAgentHasNoReferenceToPeer is called when an agent is expected to operate on a Peer it has no reference to

func (ErrAgentHasNoReferenceToPeer) Error

type ErrInvalidAgentConversion

type ErrInvalidAgentConversion struct {
	Agent        transport.Agent
	ExpectedType string
}

ErrInvalidAgentConversion is called when an agent can't be properly converted

func (ErrInvalidAgentConversion) Error

type ErrInvalidPeerConversion

type ErrInvalidPeerConversion struct {
	Peer         transport.Peer
	ExpectedType string
}

ErrInvalidPeerConversion is called when a peer can't be properly converted

func (ErrInvalidPeerConversion) Error

func (e ErrInvalidPeerConversion) Error() string

type ErrInvalidPeerType

type ErrInvalidPeerType struct {
	ExpectedType   string
	PeerIdentifier transport.PeerIdentifier
}

ErrInvalidPeerType is when a specfic peer type is required, but was not passed in

func (ErrInvalidPeerType) Error

func (e ErrInvalidPeerType) Error() string

type ErrPeerHasNoReferenceToSubscriber

type ErrPeerHasNoReferenceToSubscriber struct {
	PeerIdentifier transport.PeerIdentifier
	PeerSubscriber transport.PeerSubscriber
}

ErrPeerHasNoReferenceToSubscriber is called when a Peer is expected to operate on a PeerSubscriber it has no reference to

func (ErrPeerHasNoReferenceToSubscriber) Error

type ErrPeerListAlreadyStarted

type ErrPeerListAlreadyStarted string

ErrPeerListAlreadyStarted represents a failure because Start() was already called on the peerlist.

func (ErrPeerListAlreadyStarted) Error

type ErrPeerListNotStarted

type ErrPeerListNotStarted string

ErrPeerListNotStarted represents a failure because Start() was not called on a peerlist or if Stop() was called.

func (ErrPeerListNotStarted) Error

func (e ErrPeerListNotStarted) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL