Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Side by Side Diff: service/datastore/errors.go

Issue 2021753002: Change gae to apache 2 license. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698