OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
3 // found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
4 | 4 |
5 package datastore | 5 package datastore |
6 | 6 |
7 import ( | 7 import ( |
8 "fmt" | 8 "fmt" |
9 "reflect" | 9 "reflect" |
10 | 10 |
11 "github.com/luci/gae" | 11 "github.com/luci/gae" |
12 "google.golang.org/appengine/datastore" | 12 "google.golang.org/appengine/datastore" |
13 ) | 13 ) |
(...skipping 16 matching lines...) Expand all Loading... |
30 type ErrFieldMismatch struct { | 30 type ErrFieldMismatch struct { |
31 StructType reflect.Type | 31 StructType reflect.Type |
32 FieldName string | 32 FieldName string |
33 Reason string | 33 Reason string |
34 } | 34 } |
35 | 35 |
36 func (e *ErrFieldMismatch) Error() string { | 36 func (e *ErrFieldMismatch) Error() string { |
37 return fmt.Sprintf("gae: cannot load field %q into a %q: %s", | 37 return fmt.Sprintf("gae: cannot load field %q into a %q: %s", |
38 e.FieldName, e.StructType, e.Reason) | 38 e.FieldName, e.StructType, e.Reason) |
39 } | 39 } |
OLD | NEW |