code: func (dae diagnosticsAsError) WrappedErrors() []error {
  	var errs []error
  	for _, diag := range dae.Diagnostics {
  		if wrapper, isErr := diag.(nativeError); isErr {
  			errs = append(errs, wrapper.err)
  		}
  	}
  	return errs
  }
docs: // WrappedErrors is an implementation of errwrap.Wrapper so that an error-wrapped
  // diagnostics object can be picked apart by errwrap-aware code.