errors

package
v100.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInvalidCommitHeight

type ErrInvalidCommitHeight struct {
	Expected int64
	Actual   int64
}

ErrInvalidCommitHeight is returned when we encounter a commit with an unexpected height.

func NewErrInvalidCommitHeight

func NewErrInvalidCommitHeight(expected, actual int64) ErrInvalidCommitHeight

func (ErrInvalidCommitHeight) Error

func (e ErrInvalidCommitHeight) Error() string

type ErrInvalidCommitSignatures

type ErrInvalidCommitSignatures struct {
	Expected int
	Actual   int
}

ErrInvalidCommitSignatures is returned when we encounter a commit where the number of signatures doesn't match the number of validators.

func NewErrInvalidCommitSignatures

func NewErrInvalidCommitSignatures(expected, actual int) ErrInvalidCommitSignatures

func (ErrInvalidCommitSignatures) Error

type ErrInvalidField

type ErrInvalidField struct {
	Field  string
	Reason string
}

ErrInvalidField is returned every time a value does not pass a validity check.

func (ErrInvalidField) Error

func (e ErrInvalidField) Error() string

type ErrMsgFromProto

type ErrMsgFromProto struct {
	MessageName string
	Err         error
}

func (ErrMsgFromProto) Error

func (e ErrMsgFromProto) Error() string

func (ErrMsgFromProto) Unwrap

func (e ErrMsgFromProto) Unwrap() error

type ErrMsgToProto

type ErrMsgToProto struct {
	MessageName string
	Err         error
}

func (ErrMsgToProto) Error

func (e ErrMsgToProto) Error() string

func (ErrMsgToProto) Unwrap

func (e ErrMsgToProto) Unwrap() error

type ErrNegativeField

type ErrNegativeField struct {
	Field string
}

ErrNegativeField is returned every time some field which should be non-negative turns out negative.

func (ErrNegativeField) Error

func (e ErrNegativeField) Error() string

type ErrRequiredField

type ErrRequiredField struct {
	Field string
}

ErrRequiredField is returned every time a required field is not provided.

func (ErrRequiredField) Error

func (e ErrRequiredField) Error() string

type ErrWrongField

type ErrWrongField struct {
	Field string
	Err   error
}

ErrWrongField is returned every time a value does not pass a validaty check, accompanied with error.

func (ErrWrongField) Error

func (e ErrWrongField) Error() string

Jump to

Keyboard shortcuts

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