documented ErrInvalidInput & added example in From docs