Documentation
¶
Index ¶
- type Err
- type ErrStack
- func (es *ErrStack) Append(err string) *ErrStack
- func (es *ErrStack) AppendErr(err *Err) *ErrStack
- func (es *ErrStack) Error() string
- func (es *ErrStack) GetAll() []*Err
- func (es *ErrStack) PopAll() []*Err
- func (es *ErrStack) SetShowMetadata(showMetadata bool) *ErrStack
- func (es *ErrStack) SetTrimFilename(trimFilename bool) *ErrStack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Err ¶
type Err struct {
// contains filtered or unexported fields
}
Err struct contains filename, line number, and error message
func (*Err) SetShowMetadata ¶
SetShowMetadata is a flag to display/hide filename and line number
func (*Err) SetTrimFilename ¶
SetTrimFilename is a flag to trim filename
type ErrStack ¶
type ErrStack struct {
// contains filtered or unexported fields
}
ErrStack contains the error stack
func (*ErrStack) PopAll ¶
PopAll returns a list of *Err structs in a LIFO fashion and clears the stack.
func (*ErrStack) SetShowMetadata ¶
SetShowMetadata is a flag to display/hide filename and line number
func (*ErrStack) SetTrimFilename ¶
SetTrimFilename is a flag to trim filename
Click to show internal directories.
Click to hide internal directories.