errors

package
v0.0.0-...-9954948 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorPiece

type ErrorPiece struct {
	Value string

	ContainerType string // eg *,{,[,(
	Pieces        []*ErrorPiece

	ReorganizePiecesAroundCommas bool
	FormatPiecesAsList           bool
	// contains filtered or unexported fields
}

func NewErrorPiecesFromString

func NewErrorPiecesFromString(str string) (*ErrorPiece, bool)

func (*ErrorPiece) AddPiece

func (p *ErrorPiece) AddPiece(piece *ErrorPiece)

func (*ErrorPiece) AddStr

func (p *ErrorPiece) AddStr(str string)

func (*ErrorPiece) AsIndentedString

func (p *ErrorPiece) AsIndentedString(indent string) string

func (*ErrorPiece) AsString

func (p *ErrorPiece) AsString() string

func (*ErrorPiece) IsContainer

func (p *ErrorPiece) IsContainer() bool

func (*ErrorPiece) IsLeafContainer

func (p *ErrorPiece) IsLeafContainer() bool

func (*ErrorPiece) ReorganizePieces

func (p *ErrorPiece) ReorganizePieces()

type MultiLineError

type MultiLineError struct {
	// contains filtered or unexported fields
}

func NewMultiLineError

func NewMultiLineError(err error) MultiLineError

func (MultiLineError) Error

func (e MultiLineError) Error() (result string)

type SemiStructuredError

type SemiStructuredError struct {
	// contains filtered or unexported fields
}

func NewSemiStructuredError

func NewSemiStructuredError(err error) SemiStructuredError

func (SemiStructuredError) Error

func (e SemiStructuredError) Error() (result string)

Jump to

Keyboard shortcuts

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