github.com/hedzr/evendeep@v0.4.8/errs.go (about) 1 package evendeep 2 3 import "gopkg.in/hedzr/errors.v3" 4 5 var ( 6 // ErrUnknownState error. 7 ErrUnknownState = errors.New("unknown state, cannot copy to") 8 9 // ErrCannotSet error. 10 ErrCannotSet = errors.New("cannot set: %v (%v) -> %v (%v)") 11 12 // ErrCannotCopy error. 13 ErrCannotCopy = errors.New("cannot copy: %v (%v) -> %v (%v)") 14 15 // ErrCannotConvertTo error. 16 ErrCannotConvertTo = errors.New("cannot convert/set: %v (%v) -> %v (%v)") 17 18 // ErrShouldFallback tells the caller please continue its 19 // internal process. 20 // The error would be used in your callback function. For 21 // instance, you could return it in a target-setter (see 22 // also WithTargetValueSetter()) to ask the Copier do a 23 // standard processing, typically that will set the field 24 // with reflection. 25 ErrShouldFallback = errors.New("fallback to evendeep internals") 26 )