Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingTransactions should be raised by an IsValidFunc if a proposal may // not be verified due to missing transactions. ErrMissingTransactions = errors.New("unable to verify: missing transactions") ErrBadResponse = errors.New("bad response from p2p request to remote peer") ErrClosing = errors.New("shutting down, halt actions") ErrCorrupt = errors.New("something went wrong that requires shutdown") )
Functions ¶
Types ¶
type Err ¶
type Err struct {
// contains filtered or unexported fields
}
type ErrConsensus ¶
type ErrConsensus struct { *Err // contains filtered or unexported fields }
func NewErrConsensus ¶
func NewErrConsensus(msg string, isLocal bool) *ErrConsensus
func (*ErrConsensus) Error ¶
func (e *ErrConsensus) Error() string
func (*ErrConsensus) IsLocal ¶
func (e *ErrConsensus) IsLocal() bool
func (*ErrConsensus) Trace ¶
func (e *ErrConsensus) Trace(i ...interface{}) *ErrConsensus
func (*ErrConsensus) Wrap ¶
func (e *ErrConsensus) Wrap(err error) *ErrConsensus
type ErrInvalid ¶
type ErrInvalid struct {
*Err
}
func NewErrInvalid ¶
func NewErrInvalid(msg string) *ErrInvalid
func (*ErrInvalid) Error ¶
func (e *ErrInvalid) Error() string
func (ErrInvalid) New ¶
func (e ErrInvalid) New(msg string) *ErrInvalid
func (*ErrInvalid) Trace ¶
func (e *ErrInvalid) Trace(i ...interface{}) *ErrInvalid
func (*ErrInvalid) Wrap ¶
func (e *ErrInvalid) Wrap(err error) *ErrInvalid
Click to show internal directories.
Click to hide internal directories.