mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-24 04:54:00 +00:00
6e1436cefb
Signed-off-by: Evan Lezar <elezar@nvidia.com>
13 lines
272 B
Go
13 lines
272 B
Go
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)
|
|
}
|