Documentation
¶
Index ¶
- type ErrorPiece
- func (p *ErrorPiece) AddPiece(piece *ErrorPiece)
- func (p *ErrorPiece) AddStr(str string)
- func (p *ErrorPiece) AsIndentedString(indent string) string
- func (p *ErrorPiece) AsString() string
- func (p *ErrorPiece) IsContainer() bool
- func (p *ErrorPiece) IsLeafContainer() bool
- func (p *ErrorPiece) ReorganizePieces()
- type MultiLineError
- type SemiStructuredError
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)
Click to show internal directories.
Click to hide internal directories.