It seems like the appengine errors aren't being set properly in some cases. I'm seeing transactions returning the following (stringified error)
API error 2 (datastore_v3: CONCURRENT_TRANSACTION): too much contention on these datastore entities. please try again
and the type is "(type=*appengine_internal.APIError)"
I'd have expected a ErrConcurrentTransaction instead? This issue seems to echo how urlfetch is returning errors as well.
I was running a few patches behind on the SDK, so I've upgraded that, but I looked through the updates and they don't seem to affect any of this.
Erik