github.com/rish1988/moby@v25.0.2+incompatible/pkg/system/xattrs.go (about) 1 package system // import "github.com/docker/docker/pkg/system" 2 3 type XattrError struct { 4 Op string 5 Attr string 6 Path string 7 Err error 8 } 9 10 func (e *XattrError) Error() string { return e.Op + " " + e.Attr + " " + e.Path + ": " + e.Err.Error() } 11 12 func (e *XattrError) Unwrap() error { return e.Err } 13 14 // Timeout reports whether this error represents a timeout. 15 func (e *XattrError) Timeout() bool { 16 t, ok := e.Err.(interface{ Timeout() bool }) 17 return ok && t.Timeout() 18 }