Documentation
¶
Overview ¶
Package errverbose provides utilities to manage error verbose messages.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Formatter ¶
Formatter returns a fmt.Formatter that writes the error's verbose message.
Example ¶
err := errbase.New("error")
f := Formatter(err)
fmt.Println(f)
Output: error
func String ¶
String returns the error's verbose message as a string.
Example ¶
err := errbase.New("error")
s := String(err)
fmt.Println(s)
Output: error
func Write ¶
Write writes the error's verbose message to the writer.
The first line is the error's message. The following lines are the verbose message of the error chain.
Example ¶
err := errbase.New("error")
buf := new(strings.Builder)
Write(buf, err)
s := buf.String()
fmt.Println(s)
Output: error
Types ¶
Click to show internal directories.
Click to hide internal directories.