forked from TrueCloudLab/rclone
rc: export NewErrParamInvalid #5164
This commit is contained in:
parent
c142e3edcc
commit
79b6866b57
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ type ErrParamInvalid struct {
|
||||||
error
|
error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewErrParamInvalid returns new ErrParamInvalid from given error
|
||||||
|
func NewErrParamInvalid(err error) ErrParamInvalid {
|
||||||
|
return ErrParamInvalid{err}
|
||||||
|
}
|
||||||
|
|
||||||
// IsErrParamInvalid returns whether err is ErrParamInvalid
|
// IsErrParamInvalid returns whether err is ErrParamInvalid
|
||||||
func IsErrParamInvalid(err error) bool {
|
func IsErrParamInvalid(err error) bool {
|
||||||
_, isInvalid := err.(ErrParamInvalid)
|
_, isInvalid := err.(ErrParamInvalid)
|
||||||
|
|
Loading…
Reference in a new issue