nvidia-container-toolkit/vendor/github.com/tsaikd/KDGoLib/errutil/ErrorFormatter.go

13 lines
272 B
Go
Raw Permalink Normal View History

package errutil
// ErrorFormatter to format error
type ErrorFormatter interface {
Format(error) (string, error)
}
// TraceFormatter to trace error occur line formatter
type TraceFormatter interface {
ErrorFormatter
FormatSkip(errin error, skip int) (string, error)
}